| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "chrome/browser/lifetime/browser_close_manager.h" | 9 #include "chrome/browser/lifetime/browser_close_manager.h" |
| 10 #include "chrome/browser/signin/signin_header_helper.h" | 10 #include "chrome/browser/signin/signin_header_helper.h" |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 virtual bool PreHandleKeyboardEvent( | 321 virtual bool PreHandleKeyboardEvent( |
| 322 const content::NativeWebKeyboardEvent& event, | 322 const content::NativeWebKeyboardEvent& event, |
| 323 bool* is_keyboard_shortcut) = 0; | 323 bool* is_keyboard_shortcut) = 0; |
| 324 | 324 |
| 325 // Allows the BrowserWindow object to handle the specified keyboard event, | 325 // Allows the BrowserWindow object to handle the specified keyboard event, |
| 326 // if the renderer did not process it. | 326 // if the renderer did not process it. |
| 327 virtual void HandleKeyboardEvent( | 327 virtual void HandleKeyboardEvent( |
| 328 const content::NativeWebKeyboardEvent& event) = 0; | 328 const content::NativeWebKeyboardEvent& event) = 0; |
| 329 | 329 |
| 330 // Clipboard commands applied to the whole browser window. | 330 // Clipboard commands applied to the whole browser window. |
| 331 virtual void Cut() = 0; | 331 virtual void CutCopyPaste(int command_id) = 0; |
| 332 virtual void Copy() = 0; | |
| 333 virtual void Paste() = 0; | |
| 334 | 332 |
| 335 // Return the correct disposition for a popup window based on |bounds|. | 333 // Return the correct disposition for a popup window based on |bounds|. |
| 336 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 334 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
| 337 const gfx::Rect& bounds) = 0; | 335 const gfx::Rect& bounds) = 0; |
| 338 | 336 |
| 339 // Construct a FindBar implementation for the |browser|. | 337 // Construct a FindBar implementation for the |browser|. |
| 340 virtual FindBar* CreateFindBar() = 0; | 338 virtual FindBar* CreateFindBar() = 0; |
| 341 | 339 |
| 342 // Return the WebContentsModalDialogHost for use in positioning web contents | 340 // Return the WebContentsModalDialogHost for use in positioning web contents |
| 343 // modal dialogs within the browser window. This can sometimes be NULL (for | 341 // modal dialogs within the browser window. This can sometimes be NULL (for |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 // Returns object implementing ExclusiveAccessContext interface. | 390 // Returns object implementing ExclusiveAccessContext interface. |
| 393 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; | 391 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; |
| 394 | 392 |
| 395 protected: | 393 protected: |
| 396 friend class BrowserCloseManager; | 394 friend class BrowserCloseManager; |
| 397 friend class BrowserView; | 395 friend class BrowserView; |
| 398 virtual void DestroyBrowser() = 0; | 396 virtual void DestroyBrowser() = 0; |
| 399 }; | 397 }; |
| 400 | 398 |
| 401 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 399 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |