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
-~----------~----~----~----~------~----~------~--~---