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