OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
10 #include "chrome/browser/ui/base_window.h" | 10 #include "chrome/browser/ui/base_window.h" |
11 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" | 11 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
12 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" | 12 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" |
13 #include "chrome/common/content_settings_types.h" | 13 #include "chrome/common/content_settings_types.h" |
14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
15 #include "webkit/glue/window_open_disposition.h" | 15 #include "webkit/glue/window_open_disposition.h" |
16 | 16 |
17 class Browser; | 17 class Browser; |
18 class BrowserWindowTesting; | 18 class BrowserWindowTesting; |
19 class DownloadShelf; | 19 class DownloadShelf; |
20 class FindBar; | 20 class FindBar; |
21 class GURL; | 21 class GURL; |
22 class LocationBar; | 22 class LocationBar; |
23 class Profile; | 23 class Profile; |
24 class StatusBubble; | 24 class StatusBubble; |
25 class TabContentsWrapper; | 25 class TabContentsWrapper; |
26 class TemplateURL; | 26 class TemplateURL; |
27 #if !defined(OS_MACOSX) | 27 #if !defined(OS_MACOSX) |
28 class ToolbarView; | 28 class ToolbarView; |
29 #endif | 29 #endif |
30 struct NativeWebKeyboardEvent; | |
31 | 30 |
32 namespace content { | 31 namespace content { |
33 class WebContents; | 32 class WebContents; |
| 33 struct NativeWebKeyboardEvent; |
34 struct SSLStatus; | 34 struct SSLStatus; |
35 } | 35 } |
36 | 36 |
37 namespace gfx { | 37 namespace gfx { |
38 class Rect; | 38 class Rect; |
39 class Size; | 39 class Size; |
40 } | 40 } |
41 | 41 |
42 class Extension; | 42 class Extension; |
43 | 43 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 bool show_history) = 0; | 270 bool show_history) = 0; |
271 | 271 |
272 // Shows the app menu (for accessibility). | 272 // Shows the app menu (for accessibility). |
273 virtual void ShowAppMenu() = 0; | 273 virtual void ShowAppMenu() = 0; |
274 | 274 |
275 // Allows the BrowserWindow object to handle the specified keyboard event | 275 // Allows the BrowserWindow object to handle the specified keyboard event |
276 // before sending it to the renderer. | 276 // before sending it to the renderer. |
277 // Returns true if the |event| was handled. Otherwise, if the |event| would | 277 // Returns true if the |event| was handled. Otherwise, if the |event| would |
278 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, | 278 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, |
279 // |*is_keyboard_shortcut| should be set to true. | 279 // |*is_keyboard_shortcut| should be set to true. |
280 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 280 virtual bool PreHandleKeyboardEvent( |
281 bool* is_keyboard_shortcut) = 0; | 281 const content::NativeWebKeyboardEvent& event, |
| 282 bool* is_keyboard_shortcut) = 0; |
282 | 283 |
283 // Allows the BrowserWindow object to handle the specified keyboard event, | 284 // Allows the BrowserWindow object to handle the specified keyboard event, |
284 // if the renderer did not process it. | 285 // if the renderer did not process it. |
285 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) = 0; | 286 virtual void HandleKeyboardEvent( |
| 287 const content::NativeWebKeyboardEvent& event) = 0; |
286 | 288 |
287 // Shows the create web app shortcut dialog box. | 289 // Shows the create web app shortcut dialog box. |
288 virtual void ShowCreateWebAppShortcutsDialog( | 290 virtual void ShowCreateWebAppShortcutsDialog( |
289 TabContentsWrapper* tab_contents) = 0; | 291 TabContentsWrapper* tab_contents) = 0; |
290 | 292 |
291 // Shows the create chrome app shortcut dialog box. | 293 // Shows the create chrome app shortcut dialog box. |
292 virtual void ShowCreateChromeAppShortcutsDialog(Profile* profile, | 294 virtual void ShowCreateChromeAppShortcutsDialog(Profile* profile, |
293 const Extension* app) = 0; | 295 const Extension* app) = 0; |
294 | 296 |
295 // Clipboard commands applied to the whole browser window. | 297 // Clipboard commands applied to the whole browser window. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 | 389 |
388 // Returns the ToolbarView. | 390 // Returns the ToolbarView. |
389 virtual ToolbarView* GetToolbarView() const = 0; | 391 virtual ToolbarView* GetToolbarView() const = 0; |
390 #endif | 392 #endif |
391 | 393 |
392 protected: | 394 protected: |
393 virtual ~BrowserWindowTesting() {} | 395 virtual ~BrowserWindowTesting() {} |
394 }; | 396 }; |
395 | 397 |
396 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 398 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |