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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "content/browser/renderer_host/image_transport_factory.h" | 15 #include "content/browser/renderer_host/image_transport_factory.h" |
16 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 16 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
17 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
18 #include "ui/aura/client/activation_delegate.h" | 18 #include "ui/aura/client/activation_delegate.h" |
19 #include "ui/aura/window_delegate.h" | 19 #include "ui/aura/window_delegate.h" |
20 #include "ui/base/ime/text_input_client.h" | 20 #include "ui/base/ime/text_input_client.h" |
21 #include "ui/compositor/compositor_observer.h" | 21 #include "ui/compositor/compositor_observer.h" |
22 #include "ui/gfx/rect.h" | 22 #include "ui/gfx/rect.h" |
23 #include "webkit/glue/webcursor.h" | 23 #include "webkit/glue/webcursor.h" |
24 | 24 |
25 namespace aura { | |
26 class CompositorLock; | |
27 } | |
28 | |
29 namespace gfx { | 25 namespace gfx { |
30 class Canvas; | 26 class Canvas; |
31 } | 27 } |
32 | 28 |
33 namespace ui { | 29 namespace ui { |
| 30 class CompositorLock; |
34 class InputMethod; | 31 class InputMethod; |
35 class Texture; | 32 class Texture; |
36 } | 33 } |
37 | 34 |
38 namespace WebKit { | 35 namespace WebKit { |
39 class WebTouchEvent; | 36 class WebTouchEvent; |
40 } | 37 } |
41 | 38 |
42 namespace content { | 39 namespace content { |
43 class RenderWidgetHostImpl; | 40 class RenderWidgetHostImpl; |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 | 362 |
366 // Used to prevent further resizes while a resize is pending. | 363 // Used to prevent further resizes while a resize is pending. |
367 class ResizeLock; | 364 class ResizeLock; |
368 // These locks are the ones waiting for a texture of the right size to come | 365 // These locks are the ones waiting for a texture of the right size to come |
369 // back from the renderer/GPU process. | 366 // back from the renderer/GPU process. |
370 std::vector<linked_ptr<ResizeLock> > resize_locks_; | 367 std::vector<linked_ptr<ResizeLock> > resize_locks_; |
371 // These locks are the ones waiting for a frame to be drawn. | 368 // These locks are the ones waiting for a frame to be drawn. |
372 std::vector<linked_ptr<ResizeLock> > locks_pending_draw_; | 369 std::vector<linked_ptr<ResizeLock> > locks_pending_draw_; |
373 | 370 |
374 // This lock is for waiting for a front surface to become available to draw. | 371 // This lock is for waiting for a front surface to become available to draw. |
375 scoped_refptr<aura::CompositorLock> released_front_lock_; | 372 scoped_refptr<ui::CompositorLock> released_front_lock_; |
376 | 373 |
377 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 374 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
378 }; | 375 }; |
379 | 376 |
380 } // namespace content | 377 } // namespace content |
381 | 378 |
382 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 379 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |