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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 views::View* child) OVERRIDE; | 120 views::View* child) OVERRIDE; |
121 virtual gfx::Size GetPreferredSize() OVERRIDE; | 121 virtual gfx::Size GetPreferredSize() OVERRIDE; |
122 virtual gfx::Size GetMinimumSize() OVERRIDE; | 122 virtual gfx::Size GetMinimumSize() OVERRIDE; |
123 virtual gfx::Size GetMaximumSize() OVERRIDE; | 123 virtual gfx::Size GetMaximumSize() OVERRIDE; |
124 virtual void OnFocus() OVERRIDE; | 124 virtual void OnFocus() OVERRIDE; |
125 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 125 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
126 | 126 |
127 // NativeAppWindow implementation. | 127 // NativeAppWindow implementation. |
128 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 128 virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
129 virtual bool IsFullscreenOrPending() const OVERRIDE; | 129 virtual bool IsFullscreenOrPending() const OVERRIDE; |
| 130 virtual bool IsDetached() const OVERRIDE; |
130 virtual void UpdateWindowIcon() OVERRIDE; | 131 virtual void UpdateWindowIcon() OVERRIDE; |
131 virtual void UpdateWindowTitle() OVERRIDE; | 132 virtual void UpdateWindowTitle() OVERRIDE; |
132 virtual void UpdateDraggableRegions( | 133 virtual void UpdateDraggableRegions( |
133 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; | 134 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; |
134 virtual void HandleKeyboardEvent( | 135 virtual void HandleKeyboardEvent( |
135 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 136 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
136 virtual void RenderViewHostChanged() OVERRIDE; | 137 virtual void RenderViewHostChanged() OVERRIDE; |
137 virtual gfx::Insets GetFrameInsets() const OVERRIDE; | 138 virtual gfx::Insets GetFrameInsets() const OVERRIDE; |
138 | 139 |
139 // WebContentsModalDialogHost implementation. | 140 // WebContentsModalDialogHost implementation. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; | 172 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; |
172 | 173 |
173 base::WeakPtrFactory<NativeAppWindowViews> weak_ptr_factory_; | 174 base::WeakPtrFactory<NativeAppWindowViews> weak_ptr_factory_; |
174 | 175 |
175 ObserverList<WebContentsModalDialogHostObserver> observer_list_; | 176 ObserverList<WebContentsModalDialogHostObserver> observer_list_; |
176 | 177 |
177 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); | 178 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); |
178 }; | 179 }; |
179 | 180 |
180 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_ | 181 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_ |
OLD | NEW |