| 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/lifetime/application_lifetime.h" | 10 #include "chrome/browser/lifetime/application_lifetime.h" |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // |*is_keyboard_shortcut| should be set to true. | 304 // |*is_keyboard_shortcut| should be set to true. |
| 305 virtual bool PreHandleKeyboardEvent( | 305 virtual bool PreHandleKeyboardEvent( |
| 306 const content::NativeWebKeyboardEvent& event, | 306 const content::NativeWebKeyboardEvent& event, |
| 307 bool* is_keyboard_shortcut) = 0; | 307 bool* is_keyboard_shortcut) = 0; |
| 308 | 308 |
| 309 // Allows the BrowserWindow object to handle the specified keyboard event, | 309 // Allows the BrowserWindow object to handle the specified keyboard event, |
| 310 // if the renderer did not process it. | 310 // if the renderer did not process it. |
| 311 virtual void HandleKeyboardEvent( | 311 virtual void HandleKeyboardEvent( |
| 312 const content::NativeWebKeyboardEvent& event) = 0; | 312 const content::NativeWebKeyboardEvent& event) = 0; |
| 313 | 313 |
| 314 // Shows the create web app shortcut dialog box. | |
| 315 virtual void ShowCreateWebAppShortcutsDialog(TabContents* tab_contents) = 0; | |
| 316 | |
| 317 // Shows the create chrome app shortcut dialog box. | 314 // Shows the create chrome app shortcut dialog box. |
| 318 virtual void ShowCreateChromeAppShortcutsDialog(Profile* profile, | 315 virtual void ShowCreateChromeAppShortcutsDialog(Profile* profile, |
| 319 const extensions::Extension* app) = 0; | 316 const extensions::Extension* app) = 0; |
| 320 | 317 |
| 321 | 318 |
| 322 // Clipboard commands applied to the whole browser window. | 319 // Clipboard commands applied to the whole browser window. |
| 323 virtual void Cut() = 0; | 320 virtual void Cut() = 0; |
| 324 virtual void Copy() = 0; | 321 virtual void Copy() = 0; |
| 325 virtual void Paste() = 0; | 322 virtual void Paste() = 0; |
| 326 | 323 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 | 417 |
| 421 // Returns the ToolbarView. | 418 // Returns the ToolbarView. |
| 422 virtual ToolbarView* GetToolbarView() const = 0; | 419 virtual ToolbarView* GetToolbarView() const = 0; |
| 423 #endif | 420 #endif |
| 424 | 421 |
| 425 protected: | 422 protected: |
| 426 virtual ~BrowserWindowTesting() {} | 423 virtual ~BrowserWindowTesting() {} |
| 427 }; | 424 }; |
| 428 | 425 |
| 429 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 426 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |