| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APPS_NATIVE_APP_WINDOW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_H_ |
| 7 | 7 |
| 8 #include "apps/native_app_window.h" | 8 #include "apps/native_app_window.h" |
| 9 #include "apps/shell_window.h" | 9 #include "apps/shell_window.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 // WidgetObserver implementation. | 112 // WidgetObserver implementation. |
| 113 virtual void OnWidgetVisibilityChanged(views::Widget* widget, | 113 virtual void OnWidgetVisibilityChanged(views::Widget* widget, |
| 114 bool visible) OVERRIDE; | 114 bool visible) OVERRIDE; |
| 115 virtual void OnWidgetActivationChanged(views::Widget* widget, | 115 virtual void OnWidgetActivationChanged(views::Widget* widget, |
| 116 bool active) OVERRIDE; | 116 bool active) OVERRIDE; |
| 117 | 117 |
| 118 // WebContentsObserver implementation. | 118 // WebContentsObserver implementation. |
| 119 virtual void RenderViewCreated( | 119 virtual void RenderViewCreated( |
| 120 content::RenderViewHost* render_view_host) OVERRIDE; | 120 content::RenderViewHost* render_view_host) OVERRIDE; |
| 121 virtual void RenderViewHostChanged( |
| 122 content::RenderViewHost* old_host, |
| 123 content::RenderViewHost* new_host) OVERRIDE; |
| 121 | 124 |
| 122 // views::View implementation. | 125 // views::View implementation. |
| 123 virtual void Layout() OVERRIDE; | 126 virtual void Layout() OVERRIDE; |
| 124 virtual void ViewHierarchyChanged( | 127 virtual void ViewHierarchyChanged( |
| 125 const ViewHierarchyChangedDetails& details) OVERRIDE; | 128 const ViewHierarchyChangedDetails& details) OVERRIDE; |
| 126 virtual gfx::Size GetPreferredSize() OVERRIDE; | 129 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 127 virtual gfx::Size GetMinimumSize() OVERRIDE; | 130 virtual gfx::Size GetMinimumSize() OVERRIDE; |
| 128 virtual gfx::Size GetMaximumSize() OVERRIDE; | 131 virtual gfx::Size GetMaximumSize() OVERRIDE; |
| 129 virtual void OnFocus() OVERRIDE; | 132 virtual void OnFocus() OVERRIDE; |
| 130 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 133 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
| 131 | 134 |
| 132 // NativeAppWindow implementation. | 135 // NativeAppWindow implementation. |
| 133 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 136 virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
| 134 virtual bool IsFullscreenOrPending() const OVERRIDE; | 137 virtual bool IsFullscreenOrPending() const OVERRIDE; |
| 135 virtual bool IsDetached() const OVERRIDE; | 138 virtual bool IsDetached() const OVERRIDE; |
| 136 virtual void UpdateWindowIcon() OVERRIDE; | 139 virtual void UpdateWindowIcon() OVERRIDE; |
| 137 virtual void UpdateWindowTitle() OVERRIDE; | 140 virtual void UpdateWindowTitle() OVERRIDE; |
| 138 virtual void UpdateInputRegion(scoped_ptr<SkRegion> region) OVERRIDE; | 141 virtual void UpdateInputRegion(scoped_ptr<SkRegion> region) OVERRIDE; |
| 139 virtual void UpdateDraggableRegions( | 142 virtual void UpdateDraggableRegions( |
| 140 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; | 143 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; |
| 141 virtual void HandleKeyboardEvent( | 144 virtual void HandleKeyboardEvent( |
| 142 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 145 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 143 virtual void RenderViewHostChanged() OVERRIDE; | |
| 144 virtual gfx::Insets GetFrameInsets() const OVERRIDE; | 146 virtual gfx::Insets GetFrameInsets() const OVERRIDE; |
| 145 virtual void HideWithApp() OVERRIDE; | 147 virtual void HideWithApp() OVERRIDE; |
| 146 virtual void ShowWithApp() OVERRIDE; | 148 virtual void ShowWithApp() OVERRIDE; |
| 147 | 149 |
| 148 // web_modal::WebContentsModalDialogHost implementation. | 150 // web_modal::WebContentsModalDialogHost implementation. |
| 149 virtual gfx::NativeView GetHostView() const OVERRIDE; | 151 virtual gfx::NativeView GetHostView() const OVERRIDE; |
| 150 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; | 152 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; |
| 151 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; | 153 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; |
| 152 virtual void AddObserver( | 154 virtual void AddObserver( |
| 153 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; | 155 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; | 188 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; |
| 187 | 189 |
| 188 base::WeakPtrFactory<NativeAppWindowViews> weak_ptr_factory_; | 190 base::WeakPtrFactory<NativeAppWindowViews> weak_ptr_factory_; |
| 189 | 191 |
| 190 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; | 192 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; |
| 191 | 193 |
| 192 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); | 194 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); |
| 193 }; | 195 }; |
| 194 | 196 |
| 195 #endif // CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_H_ | 197 #endif // CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_H_ |
| OLD | NEW |