| 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 17 matching lines...) Expand all Loading... |
| 28 #include "ui/aura/client/focus_change_observer.h" | 28 #include "ui/aura/client/focus_change_observer.h" |
| 29 #include "ui/aura/window_delegate.h" | 29 #include "ui/aura/window_delegate.h" |
| 30 #include "ui/aura/window_tree_host_observer.h" | 30 #include "ui/aura/window_tree_host_observer.h" |
| 31 #include "ui/base/ime/text_input_client.h" | 31 #include "ui/base/ime/text_input_client.h" |
| 32 #include "ui/gfx/display_observer.h" | 32 #include "ui/gfx/display_observer.h" |
| 33 #include "ui/gfx/insets.h" | 33 #include "ui/gfx/insets.h" |
| 34 #include "ui/gfx/rect.h" | 34 #include "ui/gfx/rect.h" |
| 35 #include "ui/wm/public/activation_change_observer.h" | 35 #include "ui/wm/public/activation_change_observer.h" |
| 36 #include "ui/wm/public/activation_delegate.h" | 36 #include "ui/wm/public/activation_delegate.h" |
| 37 | 37 |
| 38 struct ViewHostMsg_TextInputState_Params; |
| 39 |
| 38 namespace aura { | 40 namespace aura { |
| 39 class WindowTracker; | 41 class WindowTracker; |
| 40 namespace client { | 42 namespace client { |
| 41 class ScopedTooltipDisabler; | 43 class ScopedTooltipDisabler; |
| 42 } | 44 } |
| 43 } | 45 } |
| 44 | 46 |
| 45 namespace cc { | 47 namespace cc { |
| 46 class CopyOutputRequest; | 48 class CopyOutputRequest; |
| 47 class CopyOutputResult; | 49 class CopyOutputResult; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 virtual ~TouchEditingClient() {} | 124 virtual ~TouchEditingClient() {} |
| 123 }; | 125 }; |
| 124 | 126 |
| 125 void set_touch_editing_client(TouchEditingClient* client) { | 127 void set_touch_editing_client(TouchEditingClient* client) { |
| 126 touch_editing_client_ = client; | 128 touch_editing_client_ = client; |
| 127 } | 129 } |
| 128 | 130 |
| 129 explicit RenderWidgetHostViewAura(RenderWidgetHost* host); | 131 explicit RenderWidgetHostViewAura(RenderWidgetHost* host); |
| 130 | 132 |
| 131 // RenderWidgetHostView implementation. | 133 // RenderWidgetHostView implementation. |
| 132 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | |
| 133 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; | 134 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; |
| 134 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; | 135 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; |
| 135 virtual void SetSize(const gfx::Size& size) OVERRIDE; | 136 virtual void SetSize(const gfx::Size& size) OVERRIDE; |
| 136 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; | 137 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; |
| 137 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 138 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
| 138 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; | 139 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; |
| 139 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 140 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
| 140 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; | 141 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; |
| 141 virtual bool HasFocus() const OVERRIDE; | 142 virtual bool HasFocus() const OVERRIDE; |
| 142 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; | 143 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 154 virtual void InitAsFullscreen( | 155 virtual void InitAsFullscreen( |
| 155 RenderWidgetHostView* reference_host_view) OVERRIDE; | 156 RenderWidgetHostView* reference_host_view) OVERRIDE; |
| 156 virtual void WasShown() OVERRIDE; | 157 virtual void WasShown() OVERRIDE; |
| 157 virtual void WasHidden() OVERRIDE; | 158 virtual void WasHidden() OVERRIDE; |
| 158 virtual void MovePluginWindows( | 159 virtual void MovePluginWindows( |
| 159 const std::vector<WebPluginGeometry>& moves) OVERRIDE; | 160 const std::vector<WebPluginGeometry>& moves) OVERRIDE; |
| 160 virtual void Focus() OVERRIDE; | 161 virtual void Focus() OVERRIDE; |
| 161 virtual void Blur() OVERRIDE; | 162 virtual void Blur() OVERRIDE; |
| 162 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; | 163 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; |
| 163 virtual void SetIsLoading(bool is_loading) OVERRIDE; | 164 virtual void SetIsLoading(bool is_loading) OVERRIDE; |
| 164 virtual void TextInputTypeChanged(ui::TextInputType type, | 165 virtual void TextInputStateChanged( |
| 165 ui::TextInputMode input_mode, | 166 const ViewHostMsg_TextInputState_Params& params) OVERRIDE; |
| 166 bool can_compose_inline) OVERRIDE; | |
| 167 virtual void ImeCancelComposition() OVERRIDE; | 167 virtual void ImeCancelComposition() OVERRIDE; |
| 168 virtual void ImeCompositionRangeChanged( | 168 virtual void ImeCompositionRangeChanged( |
| 169 const gfx::Range& range, | 169 const gfx::Range& range, |
| 170 const std::vector<gfx::Rect>& character_bounds) OVERRIDE; | 170 const std::vector<gfx::Rect>& character_bounds) OVERRIDE; |
| 171 virtual void RenderProcessGone(base::TerminationStatus status, | 171 virtual void RenderProcessGone(base::TerminationStatus status, |
| 172 int error_code) OVERRIDE; | 172 int error_code) OVERRIDE; |
| 173 virtual void Destroy() OVERRIDE; | 173 virtual void Destroy() OVERRIDE; |
| 174 virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE; | 174 virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE; |
| 175 virtual void SelectionChanged(const base::string16& text, | 175 virtual void SelectionChanged(const base::string16& text, |
| 176 size_t offset, | 176 size_t offset, |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 virtual void OnCursorVisibilityChanged(bool is_visible) OVERRIDE; | 308 virtual void OnCursorVisibilityChanged(bool is_visible) OVERRIDE; |
| 309 | 309 |
| 310 // Overridden from aura::client::FocusChangeObserver: | 310 // Overridden from aura::client::FocusChangeObserver: |
| 311 virtual void OnWindowFocused(aura::Window* gained_focus, | 311 virtual void OnWindowFocused(aura::Window* gained_focus, |
| 312 aura::Window* lost_focus) OVERRIDE; | 312 aura::Window* lost_focus) OVERRIDE; |
| 313 | 313 |
| 314 // Overridden from aura::WindowTreeHostObserver: | 314 // Overridden from aura::WindowTreeHostObserver: |
| 315 virtual void OnHostMoved(const aura::WindowTreeHost* host, | 315 virtual void OnHostMoved(const aura::WindowTreeHost* host, |
| 316 const gfx::Point& new_origin) OVERRIDE; | 316 const gfx::Point& new_origin) OVERRIDE; |
| 317 | 317 |
| 318 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); | |
| 319 | |
| 320 #if defined(OS_WIN) | 318 #if defined(OS_WIN) |
| 321 // Sets the cutout rects from constrained windows. These are rectangles that | 319 // Sets the cutout rects from constrained windows. These are rectangles that |
| 322 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout | 320 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout |
| 323 // rects. | 321 // rects. |
| 324 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects); | 322 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects); |
| 325 | 323 |
| 326 // Updates the cursor clip region. Used for mouse locking. | 324 // Updates the cursor clip region. Used for mouse locking. |
| 327 void UpdateMouseLockRegion(); | 325 void UpdateMouseLockRegion(); |
| 328 #endif | 326 #endif |
| 329 | 327 |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 // etc. | 580 // etc. |
| 583 scoped_ptr<content::LegacyRenderWidgetHostHWND> | 581 scoped_ptr<content::LegacyRenderWidgetHostHWND> |
| 584 legacy_render_widget_host_HWND_; | 582 legacy_render_widget_host_HWND_; |
| 585 #endif | 583 #endif |
| 586 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 584 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 587 }; | 585 }; |
| 588 | 586 |
| 589 } // namespace content | 587 } // namespace content |
| 590 | 588 |
| 591 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 589 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |