| 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 "base/observer_list.h" | 8 #include "base/observer_list.h" |
| 9 #include "chrome/browser/ui/base_window.h" | 9 #include "chrome/browser/ui/base_window.h" |
| 10 #include "chrome/browser/ui/extensions/native_app_window.h" | 10 #include "chrome/browser/ui/extensions/native_app_window.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 HWND GetNativeAppWindowHWND() const; | 62 HWND GetNativeAppWindowHWND() const; |
| 63 #endif | 63 #endif |
| 64 | 64 |
| 65 // BaseWindow implementation. | 65 // BaseWindow implementation. |
| 66 virtual bool IsActive() const OVERRIDE; | 66 virtual bool IsActive() const OVERRIDE; |
| 67 virtual bool IsMaximized() const OVERRIDE; | 67 virtual bool IsMaximized() const OVERRIDE; |
| 68 virtual bool IsMinimized() const OVERRIDE; | 68 virtual bool IsMinimized() const OVERRIDE; |
| 69 virtual bool IsFullscreen() const OVERRIDE; | 69 virtual bool IsFullscreen() const OVERRIDE; |
| 70 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; | 70 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; |
| 71 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; | 71 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; |
| 72 virtual ui::WindowShowState GetRestoredState() const OVERRIDE; |
| 72 virtual gfx::Rect GetBounds() const OVERRIDE; | 73 virtual gfx::Rect GetBounds() const OVERRIDE; |
| 73 virtual void Show() OVERRIDE; | 74 virtual void Show() OVERRIDE; |
| 74 virtual void ShowInactive() OVERRIDE; | 75 virtual void ShowInactive() OVERRIDE; |
| 75 virtual void Hide() OVERRIDE; | 76 virtual void Hide() OVERRIDE; |
| 76 virtual void Close() OVERRIDE; | 77 virtual void Close() OVERRIDE; |
| 77 virtual void Activate() OVERRIDE; | 78 virtual void Activate() OVERRIDE; |
| 78 virtual void Deactivate() OVERRIDE; | 79 virtual void Deactivate() OVERRIDE; |
| 79 virtual void Maximize() OVERRIDE; | 80 virtual void Maximize() OVERRIDE; |
| 80 virtual void Minimize() OVERRIDE; | 81 virtual void Minimize() OVERRIDE; |
| 81 virtual void Restore() OVERRIDE; | 82 virtual void Restore() OVERRIDE; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 views::View* child) OVERRIDE; | 123 views::View* child) OVERRIDE; |
| 123 virtual gfx::Size GetPreferredSize() OVERRIDE; | 124 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 124 virtual gfx::Size GetMinimumSize() OVERRIDE; | 125 virtual gfx::Size GetMinimumSize() OVERRIDE; |
| 125 virtual gfx::Size GetMaximumSize() OVERRIDE; | 126 virtual gfx::Size GetMaximumSize() OVERRIDE; |
| 126 virtual void OnFocus() OVERRIDE; | 127 virtual void OnFocus() OVERRIDE; |
| 127 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 128 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
| 128 | 129 |
| 129 // NativeAppWindow implementation. | 130 // NativeAppWindow implementation. |
| 130 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 131 virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
| 131 virtual bool IsFullscreenOrPending() const OVERRIDE; | 132 virtual bool IsFullscreenOrPending() const OVERRIDE; |
| 133 virtual bool IsDetached() const OVERRIDE; |
| 132 virtual void UpdateWindowIcon() OVERRIDE; | 134 virtual void UpdateWindowIcon() OVERRIDE; |
| 133 virtual void UpdateWindowTitle() OVERRIDE; | 135 virtual void UpdateWindowTitle() OVERRIDE; |
| 134 virtual void UpdateDraggableRegions( | 136 virtual void UpdateDraggableRegions( |
| 135 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; | 137 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; |
| 136 virtual void HandleKeyboardEvent( | 138 virtual void HandleKeyboardEvent( |
| 137 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 139 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 138 virtual void RenderViewHostChanged() OVERRIDE; | 140 virtual void RenderViewHostChanged() OVERRIDE; |
| 139 virtual gfx::Insets GetFrameInsets() const OVERRIDE; | 141 virtual gfx::Insets GetFrameInsets() const OVERRIDE; |
| 140 | 142 |
| 141 // WebContentsModalDialogHost implementation. | 143 // WebContentsModalDialogHost implementation. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; | 175 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; |
| 174 | 176 |
| 175 base::WeakPtrFactory<NativeAppWindowViews> weak_ptr_factory_; | 177 base::WeakPtrFactory<NativeAppWindowViews> weak_ptr_factory_; |
| 176 | 178 |
| 177 ObserverList<WebContentsModalDialogHostObserver> observer_list_; | 179 ObserverList<WebContentsModalDialogHostObserver> observer_list_; |
| 178 | 180 |
| 179 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); | 181 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); |
| 180 }; | 182 }; |
| 181 | 183 |
| 182 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_ | 184 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_ |
| OLD | NEW |