OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual ~RenderWidgetHostViewGuest(); | 47 virtual ~RenderWidgetHostViewGuest(); |
48 | 48 |
49 bool OnMessageReceivedFromEmbedder(const IPC::Message& message, | 49 bool OnMessageReceivedFromEmbedder(const IPC::Message& message, |
50 RenderWidgetHostImpl* embedder); | 50 RenderWidgetHostImpl* embedder); |
51 | 51 |
52 // RenderWidgetHostView implementation. | 52 // RenderWidgetHostView implementation. |
53 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 53 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
54 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; | 54 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; |
55 virtual void SetSize(const gfx::Size& size) OVERRIDE; | 55 virtual void SetSize(const gfx::Size& size) OVERRIDE; |
56 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; | 56 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; |
| 57 virtual void Focus() OVERRIDE; |
| 58 virtual bool HasFocus() const OVERRIDE; |
57 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 59 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
58 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; | 60 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; |
59 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 61 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
60 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 62 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
61 virtual void SetBackgroundOpaque(bool opaque) OVERRIDE; | 63 virtual void SetBackgroundOpaque(bool opaque) OVERRIDE; |
62 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE; | 64 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE; |
63 virtual base::string16 GetSelectedText() const OVERRIDE; | 65 virtual base::string16 GetSelectedText() const OVERRIDE; |
64 | 66 |
65 // RenderWidgetHostViewBase implementation. | 67 // RenderWidgetHostViewBase implementation. |
66 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 68 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 RenderWidgetHostViewBase* platform_view_; | 183 RenderWidgetHostViewBase* platform_view_; |
182 #if defined(USE_AURA) | 184 #if defined(USE_AURA) |
183 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; | 185 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; |
184 #endif | 186 #endif |
185 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 187 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
186 }; | 188 }; |
187 | 189 |
188 } // namespace content | 190 } // namespace content |
189 | 191 |
190 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 192 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
OLD | NEW |