Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 1986153005: The on screen keyboard on Windows 8+ should not obscure the input field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address sky unittest review comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 namespace cc { 53 namespace cc {
54 class CopyOutputRequest; 54 class CopyOutputRequest;
55 class CopyOutputResult; 55 class CopyOutputResult;
56 class DelegatedFrameData; 56 class DelegatedFrameData;
57 } 57 }
58 58
59 namespace gfx { 59 namespace gfx {
60 class Canvas; 60 class Canvas;
61 class Display; 61 class Display;
62 class Point;
62 class Rect; 63 class Rect;
63 } 64 }
64 65
65 namespace gpu { 66 namespace gpu {
66 struct Mailbox; 67 struct Mailbox;
67 } 68 }
68 69
69 namespace ui { 70 namespace ui {
70 class CompositorLock; 71 class CompositorLock;
71 class InputMethod; 72 class InputMethod;
72 class LocatedEvent; 73 class LocatedEvent;
74 #if defined(OS_WIN)
75 class OnScreenKeyboardObserver;
76 #endif
73 class Texture; 77 class Texture;
74 class TouchSelectionController; 78 class TouchSelectionController;
75 } 79 }
76 80
77 namespace content { 81 namespace content {
78 #if defined(OS_WIN) 82 #if defined(OS_WIN)
79 class LegacyRenderWidgetHostHWND; 83 class LegacyRenderWidgetHostHWND;
80 #endif 84 #endif
81 85
82 class OverscrollController; 86 class OverscrollController;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 ui::TextInputClient* GetTextInputClient() override; 123 ui::TextInputClient* GetTextInputClient() override;
120 bool HasFocus() const override; 124 bool HasFocus() const override;
121 bool IsSurfaceAvailableForCopy() const override; 125 bool IsSurfaceAvailableForCopy() const override;
122 void Show() override; 126 void Show() override;
123 void Hide() override; 127 void Hide() override;
124 bool IsShowing() override; 128 bool IsShowing() override;
125 gfx::Rect GetViewBounds() const override; 129 gfx::Rect GetViewBounds() const override;
126 void SetBackgroundColor(SkColor color) override; 130 void SetBackgroundColor(SkColor color) override;
127 gfx::Size GetVisibleViewportSize() const override; 131 gfx::Size GetVisibleViewportSize() const override;
128 void SetInsets(const gfx::Insets& insets) override; 132 void SetInsets(const gfx::Insets& insets) override;
133 void FocusedNodeTouched(const gfx::Point& location_dips_screen,
134 bool editable) override;
129 135
130 // Overridden from RenderWidgetHostViewBase: 136 // Overridden from RenderWidgetHostViewBase:
131 void InitAsPopup(RenderWidgetHostView* parent_host_view, 137 void InitAsPopup(RenderWidgetHostView* parent_host_view,
132 const gfx::Rect& pos) override; 138 const gfx::Rect& pos) override;
133 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; 139 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
134 void Focus() override; 140 void Focus() override;
135 void UpdateCursor(const WebCursor& cursor) override; 141 void UpdateCursor(const WebCursor& cursor) override;
136 void SetIsLoading(bool is_loading) override; 142 void SetIsLoading(bool is_loading) override;
137 void TextInputStateChanged(const TextInputState& params) override; 143 void TextInputStateChanged(const TextInputState& params) override;
138 void ImeCancelComposition() override; 144 void ImeCancelComposition() override;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 gfx::Point* transformed_point) override; 202 gfx::Point* transformed_point) override;
197 void ProcessMouseEvent(const blink::WebMouseEvent& event) override; 203 void ProcessMouseEvent(const blink::WebMouseEvent& event) override;
198 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) override; 204 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) override;
199 void ProcessTouchEvent(const blink::WebTouchEvent& event, 205 void ProcessTouchEvent(const blink::WebTouchEvent& event,
200 const ui::LatencyInfo& latency) override; 206 const ui::LatencyInfo& latency) override;
201 void ProcessGestureEvent(const blink::WebGestureEvent& event, 207 void ProcessGestureEvent(const blink::WebGestureEvent& event,
202 const ui::LatencyInfo& latency) override; 208 const ui::LatencyInfo& latency) override;
203 void TransformPointToLocalCoordSpace(const gfx::Point& point, 209 void TransformPointToLocalCoordSpace(const gfx::Point& point,
204 cc::SurfaceId original_surface, 210 cc::SurfaceId original_surface,
205 gfx::Point* transformed_point) override; 211 gfx::Point* transformed_point) override;
212 void FocusedNodeChanged(bool is_editable_node) override;
206 213
207 // Overridden from ui::TextInputClient: 214 // Overridden from ui::TextInputClient:
208 void SetCompositionText(const ui::CompositionText& composition) override; 215 void SetCompositionText(const ui::CompositionText& composition) override;
209 void ConfirmCompositionText() override; 216 void ConfirmCompositionText() override;
210 void ClearCompositionText() override; 217 void ClearCompositionText() override;
211 void InsertText(const base::string16& text) override; 218 void InsertText(const base::string16& text) override;
212 void InsertChar(const ui::KeyEvent& event) override; 219 void InsertChar(const ui::KeyEvent& event) override;
213 ui::TextInputType GetTextInputType() const override; 220 ui::TextInputType GetTextInputType() const override;
214 ui::TextInputMode GetTextInputMode() const override; 221 ui::TextInputMode GetTextInputMode() const override;
215 int GetTextInputFlags() const override; 222 int GetTextInputFlags() const override;
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 // Set to true if the legacy_render_widget_host_HWND_ instance was destroyed 638 // Set to true if the legacy_render_widget_host_HWND_ instance was destroyed
632 // by Windows. This could happen if the browser window was destroyed by 639 // by Windows. This could happen if the browser window was destroyed by
633 // DestroyWindow for e.g. This flag helps ensure that we don't try to create 640 // DestroyWindow for e.g. This flag helps ensure that we don't try to create
634 // the LegacyRenderWidgetHostHWND instance again as that would be a futile 641 // the LegacyRenderWidgetHostHWND instance again as that would be a futile
635 // exercise. 642 // exercise.
636 bool legacy_window_destroyed_; 643 bool legacy_window_destroyed_;
637 644
638 // Contains a copy of the last context menu request parameters. Only set when 645 // Contains a copy of the last context menu request parameters. Only set when
639 // we receive a request to show the context menu on a long press. 646 // we receive a request to show the context menu on a long press.
640 std::unique_ptr<ContextMenuParams> last_context_menu_params_; 647 std::unique_ptr<ContextMenuParams> last_context_menu_params_;
648
649 // Set to true if we requested the on screen keyboard to be displayed.
650 bool virtual_keyboard_requested_;
651
652 std::unique_ptr<ui::OnScreenKeyboardObserver> keyboard_observer_;
641 #endif 653 #endif
642 654
643 bool has_snapped_to_boundary_; 655 bool has_snapped_to_boundary_;
644 656
645 std::unique_ptr<TouchSelectionControllerClientAura> 657 std::unique_ptr<TouchSelectionControllerClientAura>
646 selection_controller_client_; 658 selection_controller_client_;
647 std::unique_ptr<ui::TouchSelectionController> selection_controller_; 659 std::unique_ptr<ui::TouchSelectionController> selection_controller_;
648 660
649 std::unique_ptr<OverscrollController> overscroll_controller_; 661 std::unique_ptr<OverscrollController> overscroll_controller_;
650 662
(...skipping 22 matching lines...) Expand all
673 bool disable_input_event_router_for_testing_; 685 bool disable_input_event_router_for_testing_;
674 686
675 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 687 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
676 688
677 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 689 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
678 }; 690 };
679 691
680 } // namespace content 692 } // namespace content
681 693
682 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 694 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698