| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "content/common/cursors/webcursor.h" | 31 #include "content/common/cursors/webcursor.h" |
| 32 #include "content/public/common/context_menu_params.h" | 32 #include "content/public/common/context_menu_params.h" |
| 33 #include "third_party/skia/include/core/SkRegion.h" | 33 #include "third_party/skia/include/core/SkRegion.h" |
| 34 #include "ui/aura/client/cursor_client_observer.h" | 34 #include "ui/aura/client/cursor_client_observer.h" |
| 35 #include "ui/aura/client/focus_change_observer.h" | 35 #include "ui/aura/client/focus_change_observer.h" |
| 36 #include "ui/aura/window_delegate.h" | 36 #include "ui/aura/window_delegate.h" |
| 37 #include "ui/aura/window_tracker.h" | 37 #include "ui/aura/window_tracker.h" |
| 38 #include "ui/aura/window_tree_host_observer.h" | 38 #include "ui/aura/window_tree_host_observer.h" |
| 39 #include "ui/base/ime/text_input_client.h" | 39 #include "ui/base/ime/text_input_client.h" |
| 40 #include "ui/base/touch/selection_bound.h" | 40 #include "ui/base/touch/selection_bound.h" |
| 41 #include "ui/display/display_observer.h" |
| 41 #include "ui/events/gestures/motion_event_aura.h" | 42 #include "ui/events/gestures/motion_event_aura.h" |
| 42 #include "ui/gfx/display_observer.h" | |
| 43 #include "ui/gfx/geometry/insets.h" | 43 #include "ui/gfx/geometry/insets.h" |
| 44 #include "ui/gfx/geometry/rect.h" | 44 #include "ui/gfx/geometry/rect.h" |
| 45 #include "ui/wm/public/activation_delegate.h" | 45 #include "ui/wm/public/activation_delegate.h" |
| 46 | 46 |
| 47 namespace aura { | 47 namespace aura { |
| 48 namespace client { | 48 namespace client { |
| 49 class ScopedTooltipDisabler; | 49 class ScopedTooltipDisabler; |
| 50 } | 50 } |
| 51 } | 51 } |
| 52 | 52 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 class RenderWidgetHostImpl; | 85 class RenderWidgetHostImpl; |
| 86 class RenderWidgetHostView; | 86 class RenderWidgetHostView; |
| 87 class TouchSelectionControllerClientAura; | 87 class TouchSelectionControllerClientAura; |
| 88 struct TextInputState; | 88 struct TextInputState; |
| 89 | 89 |
| 90 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. | 90 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. |
| 91 class CONTENT_EXPORT RenderWidgetHostViewAura | 91 class CONTENT_EXPORT RenderWidgetHostViewAura |
| 92 : public RenderWidgetHostViewBase, | 92 : public RenderWidgetHostViewBase, |
| 93 public DelegatedFrameHostClient, | 93 public DelegatedFrameHostClient, |
| 94 public ui::TextInputClient, | 94 public ui::TextInputClient, |
| 95 public gfx::DisplayObserver, | 95 public display::DisplayObserver, |
| 96 public aura::WindowTreeHostObserver, | 96 public aura::WindowTreeHostObserver, |
| 97 public aura::WindowDelegate, | 97 public aura::WindowDelegate, |
| 98 public aura::client::ActivationDelegate, | 98 public aura::client::ActivationDelegate, |
| 99 public aura::client::FocusChangeObserver, | 99 public aura::client::FocusChangeObserver, |
| 100 public aura::client::CursorClientObserver, | 100 public aura::client::CursorClientObserver, |
| 101 public cc::BeginFrameObserverBase { | 101 public cc::BeginFrameObserverBase { |
| 102 public: | 102 public: |
| 103 // When |is_guest_view_hack| is true, this view isn't really the view for | 103 // When |is_guest_view_hack| is true, this view isn't really the view for |
| 104 // the |widget|, a RenderWidgetHostViewGuest is. | 104 // the |widget|, a RenderWidgetHostViewGuest is. |
| 105 // | 105 // |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 bool GetTextFromRange(const gfx::Range& range, | 229 bool GetTextFromRange(const gfx::Range& range, |
| 230 base::string16* text) const override; | 230 base::string16* text) const override; |
| 231 void OnInputMethodChanged() override; | 231 void OnInputMethodChanged() override; |
| 232 bool ChangeTextDirectionAndLayoutAlignment( | 232 bool ChangeTextDirectionAndLayoutAlignment( |
| 233 base::i18n::TextDirection direction) override; | 233 base::i18n::TextDirection direction) override; |
| 234 void ExtendSelectionAndDelete(size_t before, size_t after) override; | 234 void ExtendSelectionAndDelete(size_t before, size_t after) override; |
| 235 void EnsureCaretInRect(const gfx::Rect& rect) override; | 235 void EnsureCaretInRect(const gfx::Rect& rect) override; |
| 236 bool IsEditCommandEnabled(int command_id) override; | 236 bool IsEditCommandEnabled(int command_id) override; |
| 237 void SetEditCommandForNextKeyEvent(int command_id) override; | 237 void SetEditCommandForNextKeyEvent(int command_id) override; |
| 238 | 238 |
| 239 // Overridden from gfx::DisplayObserver: | 239 // Overridden from display::DisplayObserver: |
| 240 void OnDisplayAdded(const gfx::Display& new_display) override; | 240 void OnDisplayAdded(const display::Display& new_display) override; |
| 241 void OnDisplayRemoved(const gfx::Display& old_display) override; | 241 void OnDisplayRemoved(const display::Display& old_display) override; |
| 242 void OnDisplayMetricsChanged(const gfx::Display& display, | 242 void OnDisplayMetricsChanged(const display::Display& display, |
| 243 uint32_t metrics) override; | 243 uint32_t metrics) override; |
| 244 | 244 |
| 245 // Overridden from aura::WindowDelegate: | 245 // Overridden from aura::WindowDelegate: |
| 246 gfx::Size GetMinimumSize() const override; | 246 gfx::Size GetMinimumSize() const override; |
| 247 gfx::Size GetMaximumSize() const override; | 247 gfx::Size GetMaximumSize() const override; |
| 248 void OnBoundsChanged(const gfx::Rect& old_bounds, | 248 void OnBoundsChanged(const gfx::Rect& old_bounds, |
| 249 const gfx::Rect& new_bounds) override; | 249 const gfx::Rect& new_bounds) override; |
| 250 gfx::NativeCursor GetCursor(const gfx::Point& point) override; | 250 gfx::NativeCursor GetCursor(const gfx::Point& point) override; |
| 251 int GetNonClientComponent(const gfx::Point& point) const override; | 251 int GetNonClientComponent(const gfx::Point& point) const override; |
| 252 bool ShouldDescendIntoChildForEventHandling( | 252 bool ShouldDescendIntoChildForEventHandling( |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 bool disable_input_event_router_for_testing_; | 686 bool disable_input_event_router_for_testing_; |
| 687 | 687 |
| 688 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 688 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 689 | 689 |
| 690 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 690 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 691 }; | 691 }; |
| 692 | 692 |
| 693 } // namespace content | 693 } // namespace content |
| 694 | 694 |
| 695 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 695 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |