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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 ui::Compositor* GetCompositor(); | 219 ui::Compositor* GetCompositor(); |
220 | 220 |
221 // The model object. | 221 // The model object. |
222 content::RenderWidgetHostImpl* host_; | 222 content::RenderWidgetHostImpl* host_; |
223 | 223 |
224 aura::Window* window_; | 224 aura::Window* window_; |
225 | 225 |
226 scoped_ptr<WindowObserver> window_observer_; | 226 scoped_ptr<WindowObserver> window_observer_; |
227 | 227 |
| 228 // Are we in the process of closing? Tracked so fullscreen views can avoid |
| 229 // sending a second shutdown request to the host when they lose the focus |
| 230 // after requesting shutdown for another reason (e.g. Escape key). |
| 231 bool in_shutdown_; |
| 232 |
228 // Is this a fullscreen view? | 233 // Is this a fullscreen view? |
229 bool is_fullscreen_; | 234 bool is_fullscreen_; |
230 | 235 |
231 // Our parent host view, if this is a popup. NULL otherwise. | 236 // Our parent host view, if this is a popup. NULL otherwise. |
232 RenderWidgetHostViewAura* popup_parent_host_view_; | 237 RenderWidgetHostViewAura* popup_parent_host_view_; |
233 | 238 |
234 // Our child popup host. NULL if we do not have a child popup. | 239 // Our child popup host. NULL if we do not have a child popup. |
235 RenderWidgetHostViewAura* popup_child_host_view_; | 240 RenderWidgetHostViewAura* popup_child_host_view_; |
236 | 241 |
237 // True when content is being loaded. Used to show an hourglass cursor. | 242 // True when content is being loaded. Used to show an hourglass cursor. |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 // These locks are the ones waiting for a texture of the right size to come | 300 // These locks are the ones waiting for a texture of the right size to come |
296 // back from the renderer/GPU process. | 301 // back from the renderer/GPU process. |
297 std::vector<linked_ptr<ResizeLock> > resize_locks_; | 302 std::vector<linked_ptr<ResizeLock> > resize_locks_; |
298 // These locks are the ones waiting for a frame to be drawn. | 303 // These locks are the ones waiting for a frame to be drawn. |
299 std::vector<linked_ptr<ResizeLock> > locks_pending_draw_; | 304 std::vector<linked_ptr<ResizeLock> > locks_pending_draw_; |
300 | 305 |
301 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 306 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
302 }; | 307 }; |
303 | 308 |
304 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 309 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |