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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 void set_paint_observer(PaintObserver* observer) { | 141 void set_paint_observer(PaintObserver* observer) { |
142 paint_observer_ = observer; | 142 paint_observer_ = observer; |
143 } | 143 } |
144 | 144 |
145 void set_touch_editing_client(TouchEditingClient* client) { | 145 void set_touch_editing_client(TouchEditingClient* client) { |
146 touch_editing_client_ = client; | 146 touch_editing_client_ = client; |
147 } | 147 } |
148 | 148 |
149 // RenderWidgetHostView implementation. | 149 // RenderWidgetHostView implementation. |
| 150 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
150 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; | 151 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; |
151 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; | 152 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; |
152 virtual void SetSize(const gfx::Size& size) OVERRIDE; | 153 virtual void SetSize(const gfx::Size& size) OVERRIDE; |
153 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; | 154 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; |
154 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 155 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
155 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; | 156 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; |
156 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 157 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
157 virtual bool HasFocus() const OVERRIDE; | 158 virtual bool HasFocus() const OVERRIDE; |
158 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; | 159 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; |
159 virtual void Show() OVERRIDE; | 160 virtual void Show() OVERRIDE; |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 | 331 |
331 // Overridden from aura::RootWindowObserver: | 332 // Overridden from aura::RootWindowObserver: |
332 virtual void OnRootWindowHostMoved(const aura::RootWindow* root, | 333 virtual void OnRootWindowHostMoved(const aura::RootWindow* root, |
333 const gfx::Point& new_origin) OVERRIDE; | 334 const gfx::Point& new_origin) OVERRIDE; |
334 | 335 |
335 // FrameContainer implementation: | 336 // FrameContainer implementation: |
336 virtual void ReleaseCurrentFrame() OVERRIDE; | 337 virtual void ReleaseCurrentFrame() OVERRIDE; |
337 | 338 |
338 bool CanCopyToBitmap() const; | 339 bool CanCopyToBitmap() const; |
339 | 340 |
| 341 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); |
| 342 |
340 #if defined(OS_WIN) | 343 #if defined(OS_WIN) |
341 // Sets the cutout rects from constrained windows. These are rectangles that | 344 // Sets the cutout rects from constrained windows. These are rectangles that |
342 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout | 345 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout |
343 // rects. | 346 // rects. |
344 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects); | 347 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects); |
345 #endif | 348 #endif |
346 | 349 |
347 protected: | 350 protected: |
348 friend class RenderWidgetHostView; | 351 friend class RenderWidgetHostView; |
349 virtual ~RenderWidgetHostViewAura(); | 352 virtual ~RenderWidgetHostViewAura(); |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 unsigned frame_id; | 751 unsigned frame_id; |
749 }; | 752 }; |
750 scoped_ptr<ReleasedFrameInfo> released_software_frame_; | 753 scoped_ptr<ReleasedFrameInfo> released_software_frame_; |
751 | 754 |
752 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 755 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
753 }; | 756 }; |
754 | 757 |
755 } // namespace content | 758 } // namespace content |
756 | 759 |
757 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 760 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |