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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 RenderWidgetHostViewBase* platform_view); | 46 RenderWidgetHostViewBase* platform_view); |
47 virtual ~RenderWidgetHostViewGuest(); | 47 virtual ~RenderWidgetHostViewGuest(); |
48 | 48 |
49 bool OnMessageReceivedFromEmbedder(const IPC::Message& message); | 49 bool OnMessageReceivedFromEmbedder(const IPC::Message& message); |
50 | 50 |
51 // RenderWidgetHostView implementation. | 51 // RenderWidgetHostView implementation. |
52 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 52 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
53 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; | 53 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; |
54 virtual void SetSize(const gfx::Size& size) OVERRIDE; | 54 virtual void SetSize(const gfx::Size& size) OVERRIDE; |
55 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; | 55 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; |
| 56 virtual void Focus() OVERRIDE; |
| 57 virtual bool HasFocus() const OVERRIDE; |
56 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 58 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
57 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; | 59 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; |
58 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 60 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
59 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 61 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
60 virtual void SetBackgroundOpaque(bool opaque) OVERRIDE; | 62 virtual void SetBackgroundOpaque(bool opaque) OVERRIDE; |
61 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE; | 63 virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE; |
62 virtual base::string16 GetSelectedText() const OVERRIDE; | 64 virtual base::string16 GetSelectedText() const OVERRIDE; |
63 | 65 |
64 // RenderWidgetHostViewBase implementation. | 66 // RenderWidgetHostViewBase implementation. |
65 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 67 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 RenderWidgetHostViewBase* platform_view_; | 181 RenderWidgetHostViewBase* platform_view_; |
180 #if defined(USE_AURA) | 182 #if defined(USE_AURA) |
181 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; | 183 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; |
182 #endif | 184 #endif |
183 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 185 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
184 }; | 186 }; |
185 | 187 |
186 } // namespace content | 188 } // namespace content |
187 | 189 |
188 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 190 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
OLD | NEW |