| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 void set_paint_observer(PaintObserver* observer) { | 146 void set_paint_observer(PaintObserver* observer) { |
| 147 paint_observer_ = observer; | 147 paint_observer_ = observer; |
| 148 } | 148 } |
| 149 | 149 |
| 150 void set_touch_editing_client(TouchEditingClient* client) { | 150 void set_touch_editing_client(TouchEditingClient* client) { |
| 151 touch_editing_client_ = client; | 151 touch_editing_client_ = client; |
| 152 } | 152 } |
| 153 | 153 |
| 154 // RenderWidgetHostView implementation. | 154 // RenderWidgetHostView implementation. |
| 155 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 155 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; | 156 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; |
| 156 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; | 157 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; |
| 157 virtual void SetSize(const gfx::Size& size) OVERRIDE; | 158 virtual void SetSize(const gfx::Size& size) OVERRIDE; |
| 158 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; | 159 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; |
| 159 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 160 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
| 160 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; | 161 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; |
| 161 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 162 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
| 162 virtual bool HasFocus() const OVERRIDE; | 163 virtual bool HasFocus() const OVERRIDE; |
| 163 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; | 164 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; |
| 164 virtual void Show() OVERRIDE; | 165 virtual void Show() OVERRIDE; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 virtual void OnWindowTreeHostMoved(const aura::RootWindow* root, | 339 virtual void OnWindowTreeHostMoved(const aura::RootWindow* root, |
| 339 const gfx::Point& new_origin) OVERRIDE; | 340 const gfx::Point& new_origin) OVERRIDE; |
| 340 | 341 |
| 341 // SoftwareFrameManagerClient implementation: | 342 // SoftwareFrameManagerClient implementation: |
| 342 virtual void SoftwareFrameWasFreed( | 343 virtual void SoftwareFrameWasFreed( |
| 343 uint32 output_surface_id, unsigned frame_id) OVERRIDE; | 344 uint32 output_surface_id, unsigned frame_id) OVERRIDE; |
| 344 virtual void ReleaseReferencesToSoftwareFrame() OVERRIDE; | 345 virtual void ReleaseReferencesToSoftwareFrame() OVERRIDE; |
| 345 | 346 |
| 346 bool CanCopyToBitmap() const; | 347 bool CanCopyToBitmap() const; |
| 347 | 348 |
| 349 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); |
| 350 |
| 348 #if defined(OS_WIN) | 351 #if defined(OS_WIN) |
| 349 // Sets the cutout rects from constrained windows. These are rectangles that | 352 // Sets the cutout rects from constrained windows. These are rectangles that |
| 350 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout | 353 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout |
| 351 // rects. | 354 // rects. |
| 352 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects); | 355 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects); |
| 353 #endif | 356 #endif |
| 354 | 357 |
| 355 // Method to indicate if this instance is shutting down or closing. | 358 // Method to indicate if this instance is shutting down or closing. |
| 356 // TODO(shrikant): Discuss around to see if it makes sense to add this method | 359 // TODO(shrikant): Discuss around to see if it makes sense to add this method |
| 357 // as part of RenderWidgetHostView. | 360 // as part of RenderWidgetHostView. |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 // passed to windowless plugins like Flash/Silverlight, etc as the | 795 // passed to windowless plugins like Flash/Silverlight, etc as the |
| 793 // container window. | 796 // container window. |
| 794 HWND plugin_parent_window_; | 797 HWND plugin_parent_window_; |
| 795 #endif | 798 #endif |
| 796 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 799 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 797 }; | 800 }; |
| 798 | 801 |
| 799 } // namespace content | 802 } // namespace content |
| 800 | 803 |
| 801 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 804 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |