| 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 20 matching lines...) Expand all Loading... |
| 31 #include "ui/aura/window_tree_host_observer.h" | 31 #include "ui/aura/window_tree_host_observer.h" |
| 32 #include "ui/base/ime/text_input_client.h" | 32 #include "ui/base/ime/text_input_client.h" |
| 33 #include "ui/base/touch/selection_bound.h" | 33 #include "ui/base/touch/selection_bound.h" |
| 34 #include "ui/base/touch/touch_editing_controller.h" | 34 #include "ui/base/touch/touch_editing_controller.h" |
| 35 #include "ui/events/gestures/motion_event_aura.h" | 35 #include "ui/events/gestures/motion_event_aura.h" |
| 36 #include "ui/gfx/display_observer.h" | 36 #include "ui/gfx/display_observer.h" |
| 37 #include "ui/gfx/geometry/insets.h" | 37 #include "ui/gfx/geometry/insets.h" |
| 38 #include "ui/gfx/geometry/rect.h" | 38 #include "ui/gfx/geometry/rect.h" |
| 39 #include "ui/wm/public/activation_delegate.h" | 39 #include "ui/wm/public/activation_delegate.h" |
| 40 | 40 |
| 41 struct ViewHostMsg_TextInputState_Params; |
| 42 |
| 41 namespace aura { | 43 namespace aura { |
| 42 class WindowTracker; | 44 class WindowTracker; |
| 43 namespace client { | 45 namespace client { |
| 44 class ScopedTooltipDisabler; | 46 class ScopedTooltipDisabler; |
| 45 } | 47 } |
| 46 } | 48 } |
| 47 | 49 |
| 48 namespace cc { | 50 namespace cc { |
| 49 class CopyOutputRequest; | 51 class CopyOutputRequest; |
| 50 class CopyOutputResult; | 52 class CopyOutputResult; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 void SetInsets(const gfx::Insets& insets) override; | 164 void SetInsets(const gfx::Insets& insets) override; |
| 163 | 165 |
| 164 // Overridden from RenderWidgetHostViewBase: | 166 // Overridden from RenderWidgetHostViewBase: |
| 165 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 167 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 166 const gfx::Rect& pos) override; | 168 const gfx::Rect& pos) override; |
| 167 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 169 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
| 168 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; | 170 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; |
| 169 void Focus() override; | 171 void Focus() override; |
| 170 void UpdateCursor(const WebCursor& cursor) override; | 172 void UpdateCursor(const WebCursor& cursor) override; |
| 171 void SetIsLoading(bool is_loading) override; | 173 void SetIsLoading(bool is_loading) override; |
| 172 void TextInputTypeChanged(ui::TextInputType type, | 174 void TextInputStateChanged( |
| 173 ui::TextInputMode input_mode, | 175 const ViewHostMsg_TextInputState_Params& params) override; |
| 174 bool can_compose_inline, | |
| 175 int flags) override; | |
| 176 void ImeCancelComposition() override; | 176 void ImeCancelComposition() override; |
| 177 void ImeCompositionRangeChanged( | 177 void ImeCompositionRangeChanged( |
| 178 const gfx::Range& range, | 178 const gfx::Range& range, |
| 179 const std::vector<gfx::Rect>& character_bounds) override; | 179 const std::vector<gfx::Rect>& character_bounds) override; |
| 180 void RenderProcessGone(base::TerminationStatus status, | 180 void RenderProcessGone(base::TerminationStatus status, |
| 181 int error_code) override; | 181 int error_code) override; |
| 182 void Destroy() override; | 182 void Destroy() override; |
| 183 void SetTooltipText(const base::string16& tooltip_text) override; | 183 void SetTooltipText(const base::string16& tooltip_text) override; |
| 184 void SelectionChanged(const base::string16& text, | 184 void SelectionChanged(const base::string16& text, |
| 185 size_t offset, | 185 size_t offset, |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 void OnCursorVisibilityChanged(bool is_visible) override; | 303 void OnCursorVisibilityChanged(bool is_visible) override; |
| 304 | 304 |
| 305 // Overridden from aura::client::FocusChangeObserver: | 305 // Overridden from aura::client::FocusChangeObserver: |
| 306 void OnWindowFocused(aura::Window* gained_focus, | 306 void OnWindowFocused(aura::Window* gained_focus, |
| 307 aura::Window* lost_focus) override; | 307 aura::Window* lost_focus) override; |
| 308 | 308 |
| 309 // Overridden from aura::WindowTreeHostObserver: | 309 // Overridden from aura::WindowTreeHostObserver: |
| 310 void OnHostMoved(const aura::WindowTreeHost* host, | 310 void OnHostMoved(const aura::WindowTreeHost* host, |
| 311 const gfx::Point& new_origin) override; | 311 const gfx::Point& new_origin) override; |
| 312 | 312 |
| 313 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); | |
| 314 | |
| 315 #if defined(OS_WIN) | 313 #if defined(OS_WIN) |
| 316 // Sets the cutout rects from constrained windows. These are rectangles that | 314 // Sets the cutout rects from constrained windows. These are rectangles that |
| 317 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout | 315 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout |
| 318 // rects. | 316 // rects. |
| 319 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects); | 317 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects); |
| 320 | 318 |
| 321 // Updates the cursor clip region. Used for mouse locking. | 319 // Updates the cursor clip region. Used for mouse locking. |
| 322 void UpdateMouseLockRegion(); | 320 void UpdateMouseLockRegion(); |
| 323 | 321 |
| 324 // Notification that the LegacyRenderWidgetHostHWND was destroyed. | 322 // Notification that the LegacyRenderWidgetHostHWND was destroyed. |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 | 671 |
| 674 BeginFrameObserverProxy begin_frame_observer_proxy_; | 672 BeginFrameObserverProxy begin_frame_observer_proxy_; |
| 675 | 673 |
| 676 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 674 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 677 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 675 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 678 }; | 676 }; |
| 679 | 677 |
| 680 } // namespace content | 678 } // namespace content |
| 681 | 679 |
| 682 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 680 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |