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