Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: chrome/browser/browser_window.h

Issue 400012: Refactor the keyboard events handling code related to RenderViewHostDelegate:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_keyevents_browsertest.cc ('k') | chrome/browser/chromeos/main_menu.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_BROWSER_WINDOW_H_
7 7
8 #include "app/gfx/native_widget_types.h" 8 #include "app/gfx/native_widget_types.h"
9 #include "chrome/browser/tab_contents/navigation_entry.h" 9 #include "chrome/browser/tab_contents/navigation_entry.h"
10 10
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 const GURL& url, 260 const GURL& url,
261 const NavigationEntry::SSLStatus& ssl, 261 const NavigationEntry::SSLStatus& ssl,
262 bool show_history) = 0; 262 bool show_history) = 0;
263 263
264 // Shows the page menu (for accessibility). 264 // Shows the page menu (for accessibility).
265 virtual void ShowPageMenu() = 0; 265 virtual void ShowPageMenu() = 0;
266 266
267 // Shows the app menu (for accessibility). 267 // Shows the app menu (for accessibility).
268 virtual void ShowAppMenu() = 0; 268 virtual void ShowAppMenu() = 0;
269 269
270 // Returns the id of the keyboard accelerator associated with the given 270 // Allows the BrowserWindow object to handle the specified keyboard event
271 // keyboard event if one exists, otherwise -1. 271 // before sending it to the renderer.
272 virtual int GetCommandId(const NativeWebKeyboardEvent& event) = 0; 272 // Returns true if the |event| was handled. Otherwise, if the |event| would
273 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut,
274 // |*is_keyboard_shortcut| should be set to true.
275 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
276 bool* is_keyboard_shortcut) = 0;
277
278 // Allows the BrowserWindow object to handle the specified keyboard event,
279 // if the renderer did not process it.
280 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) = 0;
273 281
274 // Shows the create web app shortcut dialog box. 282 // Shows the create web app shortcut dialog box.
275 virtual void ShowCreateShortcutsDialog(TabContents* tab_contents) = 0; 283 virtual void ShowCreateShortcutsDialog(TabContents* tab_contents) = 0;
276 284
277 #if defined(TOOLKIT_VIEWS) 285 #if defined(TOOLKIT_VIEWS)
278 // Toggles compact navigation bar. 286 // Toggles compact navigation bar.
279 virtual void ToggleCompactNavigationBar() = 0; 287 virtual void ToggleCompactNavigationBar() = 0;
280 #endif // defined(TOOLKIT_VIEWS) 288 #endif // defined(TOOLKIT_VIEWS)
281 289
282 // Construct a BrowserWindow implementation for the specified |browser|. 290 // Construct a BrowserWindow implementation for the specified |browser|.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 323
316 // Returns the TabContentsContainer. 324 // Returns the TabContentsContainer.
317 virtual views::View* GetTabContentsContainerView() const = 0; 325 virtual views::View* GetTabContentsContainerView() const = 0;
318 326
319 // Returns the ToolbarView. 327 // Returns the ToolbarView.
320 virtual ToolbarView* GetToolbarView() const = 0; 328 virtual ToolbarView* GetToolbarView() const = 0;
321 #endif 329 #endif
322 }; 330 };
323 331
324 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ 332 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_keyevents_browsertest.cc ('k') | chrome/browser/chromeos/main_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698