From d56bcd21c5842c72ec0a8cd14c910e1dd4ed7048 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Mon, 16 Mar 2009 19:51:56 +0000 Subject: Linux accelerators cleanup: - Give renderer a chance to handle accelerators before browser does. - Handle browser accelerators that aren't attached to any particular UI element in BrowserWindowGtk rather than in BrowserToolbarGtk - Use Browser::ExecuteCommand() to handle accelerator activation - Switch a random void* to gfx::NativeWindow - Enable three browser commands on linux : Focus Location, Focus Search, Open file This fully enables ctrl-l, ctrl-k, and ctrl-o. This fixes copy-pasta in the omnibox. This fixes the problem Dean described with . bug=8659 Review URL: http://codereview.chromium.org/42190 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11759 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser_window.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'chrome/browser/browser_window.h') diff --git a/chrome/browser/browser_window.h b/chrome/browser/browser_window.h index 5bf3748..2151717 100644 --- a/chrome/browser/browser_window.h +++ b/chrome/browser/browser_window.h @@ -5,6 +5,8 @@ #ifndef CHROME_BROWSER_BROWSER_WINDOW_H_ #define CHROME_BROWSER_BROWSER_WINDOW_H_ +#include "base/gfx/native_widget_types.h" + class Browser; class BrowserList; class BrowserWindowTesting; @@ -56,8 +58,8 @@ class BrowserWindow { virtual void FlashFrame() = 0; // Return a platform dependent identifier for this frame. On Windows, this - // returns an HWND. DO NOT USE IN CROSS PLATFORM CODE. - virtual void* GetNativeHandle() = 0; + // returns an HWND. + virtual gfx::NativeWindow GetNativeHandle() = 0; // Returns a pointer to the testing interface to the Browser window, or NULL // if there is none. -- cgit v1.1