I keep working on it,
The basic functionality of DnD is very simple, but call a browser method
isn't so :)

On Mac ( and i think that the same on windows and linux ) there is a
BaseView subclass called RenderWidgetHostViewMac that has an atributte of
the type RenderWidgetHost. I believe that i can use RenderWidgetHost to
communicate with RenderProcessHost in order to reach Browser class and call
OpenURL.

am I in the right direction to reach Browser class and make it to open an
URL?

Indeed, is there any document explaining the core architechture of
chromium?, I think it would be very useful to newbies :)

Roberto.

On Tue, Jul 7, 2009 at 6:58 AM, PhistucK <[email protected]> wrote:

> If it is using the same functions as the Windows version uses for opening
> URLs (and I believe it does, since this is a very basic core functionality
> that should be unified), then search for the way the Go button goes to the
> URL in toolbar. Generally, I found it in browser.h\cc (
> http://src.chromium.org/svn/trunk/src/chrome/browser/browser.cc)-
> OpenURL(url, referrer, disposition, transition);
> For example -
> OpenURL(file_url, GURL(), CURRENT_TAB, PageTransition::TYPED);
>
> Actual function -
>
> void Browser::OpenURL(const GURL& url, const GURL& referrer,
>                       WindowOpenDisposition disposition,
>                       PageTransition::Type transition) {
>   OpenURLFromTab(NULL, url, referrer, disposition, transition);
> }
>
>
> ☆PhistucK
>
>
> On Mon, Jul 6, 2009 at 23:54, Roberto <[email protected]> wrote:
>
>>
>> Hello,
>>
>> I'm working in Drag'n Drop missing feature in Mac version. (issue
>> #12263)
>> I'm pretty new in Chrome develop and I'm very lost in many things.
>>
>> Now, I capture de "drop" events and take the URL to navigate, ( I
>> place the code in cocoa/base_view.mm ) but i dont know how can I make
>> the browser to open that URL.
>>
>> I'm investigating how autocomplete bar does the work hoping to find
>> light in it.
>>
>> If you have any clues I would appreciate it :)
>>
>> Greets
>> Roberto.
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to