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_NATIVE_APP_WINDOW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_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_app_window.h" | 9 #include "chrome/browser/ui/extensions/native_app_window.h" |
10 #include "chrome/browser/ui/extensions/shell_window.h" | 10 #include "chrome/browser/ui/extensions/shell_window.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 void OnViewWasResized(); | 50 void OnViewWasResized(); |
51 | 51 |
52 // BaseWindow implementation. | 52 // BaseWindow implementation. |
53 virtual bool IsActive() const OVERRIDE; | 53 virtual bool IsActive() const OVERRIDE; |
54 virtual bool IsMaximized() const OVERRIDE; | 54 virtual bool IsMaximized() const OVERRIDE; |
55 virtual bool IsMinimized() const OVERRIDE; | 55 virtual bool IsMinimized() const OVERRIDE; |
56 virtual bool IsFullscreen() const OVERRIDE; | 56 virtual bool IsFullscreen() const OVERRIDE; |
57 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; | 57 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; |
58 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; | 58 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; |
59 virtual gfx::Rect GetBounds() const OVERRIDE; | 59 virtual gfx::Rect GetBounds() const OVERRIDE; |
| 60 virtual gfx::Rect GetContentBounds() const OVERRIDE; |
60 virtual void Show() OVERRIDE; | 61 virtual void Show() OVERRIDE; |
61 virtual void ShowInactive() OVERRIDE; | 62 virtual void ShowInactive() OVERRIDE; |
62 virtual void Hide() OVERRIDE; | 63 virtual void Hide() OVERRIDE; |
63 virtual void Close() OVERRIDE; | 64 virtual void Close() OVERRIDE; |
64 virtual void Activate() OVERRIDE; | 65 virtual void Activate() OVERRIDE; |
65 virtual void Deactivate() OVERRIDE; | 66 virtual void Deactivate() OVERRIDE; |
66 virtual void Maximize() OVERRIDE; | 67 virtual void Maximize() OVERRIDE; |
67 virtual void Minimize() OVERRIDE; | 68 virtual void Minimize() OVERRIDE; |
68 virtual void Restore() OVERRIDE; | 69 virtual void Restore() OVERRIDE; |
69 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 70 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 150 |
150 // The class that registers for keyboard shortcuts for extension commands. | 151 // The class that registers for keyboard shortcuts for extension commands. |
151 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_; | 152 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_; |
152 | 153 |
153 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; | 154 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; |
154 | 155 |
155 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); | 156 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); |
156 }; | 157 }; |
157 | 158 |
158 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_ | 159 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_ |
OLD | NEW |