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_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ |
7 | 7 |
8 #include "chrome/browser/ui/base_window.h" | 8 #include "chrome/browser/ui/base_window.h" |
9 #include "chrome/browser/ui/extensions/native_shell_window.h" | 9 #include "chrome/browser/ui/extensions/native_shell_window.h" |
10 #include "chrome/browser/ui/extensions/shell_window.h" | 10 #include "chrome/browser/ui/extensions/shell_window.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 virtual void Hide() OVERRIDE; | 51 virtual void Hide() OVERRIDE; |
52 virtual void Close() OVERRIDE; | 52 virtual void Close() OVERRIDE; |
53 virtual void Activate() OVERRIDE; | 53 virtual void Activate() OVERRIDE; |
54 virtual void Deactivate() OVERRIDE; | 54 virtual void Deactivate() OVERRIDE; |
55 virtual void Maximize() OVERRIDE; | 55 virtual void Maximize() OVERRIDE; |
56 virtual void Minimize() OVERRIDE; | 56 virtual void Minimize() OVERRIDE; |
57 virtual void Restore() OVERRIDE; | 57 virtual void Restore() OVERRIDE; |
58 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 58 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
59 virtual void FlashFrame(bool flash) OVERRIDE; | 59 virtual void FlashFrame(bool flash) OVERRIDE; |
60 virtual bool IsAlwaysOnTop() const OVERRIDE; | 60 virtual bool IsAlwaysOnTop() const OVERRIDE; |
| 61 virtual gfx::Rect ContentBoundsForWindowBounds( |
| 62 const gfx::Rect& window_bounds) const OVERRIDE; |
| 63 virtual gfx::Rect WindowBoundsForContentBounds( |
| 64 const gfx::Rect& content_bounds) const OVERRIDE; |
61 | 65 |
62 // WidgetDelegate implementation. | 66 // WidgetDelegate implementation. |
63 virtual views::View* GetContentsView() OVERRIDE; | 67 virtual views::View* GetContentsView() OVERRIDE; |
64 virtual views::NonClientFrameView* CreateNonClientFrameView( | 68 virtual views::NonClientFrameView* CreateNonClientFrameView( |
65 views::Widget* widget) OVERRIDE; | 69 views::Widget* widget) OVERRIDE; |
66 virtual bool CanResize() const OVERRIDE; | 70 virtual bool CanResize() const OVERRIDE; |
67 virtual bool CanMaximize() const OVERRIDE; | 71 virtual bool CanMaximize() const OVERRIDE; |
68 virtual views::Widget* GetWidget() OVERRIDE; | 72 virtual views::Widget* GetWidget() OVERRIDE; |
69 virtual const views::Widget* GetWidget() const OVERRIDE; | 73 virtual const views::Widget* GetWidget() const OVERRIDE; |
70 virtual string16 GetWindowTitle() const OVERRIDE; | 74 virtual string16 GetWindowTitle() const OVERRIDE; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 135 |
132 // The class that registers for keyboard shortcuts for extension commands. | 136 // The class that registers for keyboard shortcuts for extension commands. |
133 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_; | 137 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_; |
134 | 138 |
135 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; | 139 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; |
136 | 140 |
137 DISALLOW_COPY_AND_ASSIGN(ShellWindowViews); | 141 DISALLOW_COPY_AND_ASSIGN(ShellWindowViews); |
138 }; | 142 }; |
139 | 143 |
140 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ | 144 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ |
OLD | NEW |