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 <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 } | 55 } |
56 | 56 |
57 namespace gfx { | 57 namespace gfx { |
58 class Canvas; | 58 class Canvas; |
59 class Display; | 59 class Display; |
60 } | 60 } |
61 | 61 |
62 namespace ui { | 62 namespace ui { |
63 class CompositorLock; | 63 class CompositorLock; |
64 class InputMethod; | 64 class InputMethod; |
| 65 class LocatedEvent; |
65 class Texture; | 66 class Texture; |
66 } | 67 } |
67 | 68 |
68 namespace content { | 69 namespace content { |
69 class RenderWidgetHostImpl; | 70 class RenderWidgetHostImpl; |
70 class RenderWidgetHostView; | 71 class RenderWidgetHostView; |
71 class ResizeLock; | 72 class ResizeLock; |
72 | 73 |
73 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. | 74 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. |
74 class CONTENT_EXPORT RenderWidgetHostViewAura | 75 class CONTENT_EXPORT RenderWidgetHostViewAura |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 static void ReturnSubscriberTexture( | 523 static void ReturnSubscriberTexture( |
523 base::WeakPtr<RenderWidgetHostViewAura> rwhva, | 524 base::WeakPtr<RenderWidgetHostViewAura> rwhva, |
524 scoped_refptr<OwnedMailbox> subscriber_texture, | 525 scoped_refptr<OwnedMailbox> subscriber_texture, |
525 uint32 sync_point); | 526 uint32 sync_point); |
526 | 527 |
527 ui::Compositor* GetCompositor() const; | 528 ui::Compositor* GetCompositor() const; |
528 | 529 |
529 // Detaches |this| from the input method object. | 530 // Detaches |this| from the input method object. |
530 void DetachFromInputMethod(); | 531 void DetachFromInputMethod(); |
531 | 532 |
532 // Dismisses a Web Popup on mouse press outside the popup and its parent. | 533 // Dismisses a Web Popup on a mouse or touch press outside the popup and its |
533 void ApplyEventFilterForPopupExit(ui::MouseEvent* event); | 534 // parent. |
| 535 void ApplyEventFilterForPopupExit(ui::LocatedEvent* event); |
534 | 536 |
535 // Converts |rect| from window coordinate to screen coordinate. | 537 // Converts |rect| from window coordinate to screen coordinate. |
536 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const; | 538 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const; |
537 | 539 |
538 // Converts |rect| from screen coordinate to window coordinate. | 540 // Converts |rect| from screen coordinate to window coordinate. |
539 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; | 541 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; |
540 | 542 |
541 typedef base::Callback<void(bool, const scoped_refptr<ui::Texture>&)> | 543 typedef base::Callback<void(bool, const scoped_refptr<ui::Texture>&)> |
542 BufferPresentedCallback; | 544 BufferPresentedCallback; |
543 | 545 |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 // passed to windowless plugins like Flash/Silverlight, etc as the | 804 // passed to windowless plugins like Flash/Silverlight, etc as the |
803 // container window. | 805 // container window. |
804 HWND plugin_parent_window_; | 806 HWND plugin_parent_window_; |
805 #endif | 807 #endif |
806 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 808 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
807 }; | 809 }; |
808 | 810 |
809 } // namespace content | 811 } // namespace content |
810 | 812 |
811 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 813 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |