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

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

Issue 2632493005: Disable Android virtual keyboard when in VR shell (Closed)
Patch Set: minor clean up Created 3 years, 11 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_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void OnSetNeedsFlushInput() override; 134 void OnSetNeedsFlushInput() override;
135 void GestureEventAck(const blink::WebGestureEvent& event, 135 void GestureEventAck(const blink::WebGestureEvent& event,
136 InputEventAckState ack_result) override; 136 InputEventAckState ack_result) override;
137 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( 137 BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
138 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; 138 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override;
139 bool LockMouse() override; 139 bool LockMouse() override;
140 void UnlockMouse() override; 140 void UnlockMouse() override;
141 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, 141 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id,
142 cc::CompositorFrame frame) override; 142 cc::CompositorFrame frame) override;
143 void ClearCompositorFrame() override; 143 void ClearCompositorFrame() override;
144 void SetShowingOverscrollGlow(bool showing_glow) override; 144 void SetIsInVR(bool is_in_vr) override;
145 void DidOverscroll(const ui::DidOverscrollParams& params) override; 145 void DidOverscroll(const ui::DidOverscrollParams& params) override;
146 void DidStopFlinging() override; 146 void DidStopFlinging() override;
147 cc::FrameSinkId GetFrameSinkId() override; 147 cc::FrameSinkId GetFrameSinkId() override;
148 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, 148 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels,
149 const SkBitmap& zoomed_bitmap) override; 149 const SkBitmap& zoomed_bitmap) override;
150 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() 150 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget()
151 override; 151 override;
152 void LockCompositingSurface() override; 152 void LockCompositingSurface() override;
153 void UnlockCompositingSurface() override; 153 void UnlockCompositingSurface() override;
154 void OnDidNavigateMainFrameToNewPage() override; 154 void OnDidNavigateMainFrameToNewPage() override;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // Indicates whether and for what reason a request for begin frames has been 322 // Indicates whether and for what reason a request for begin frames has been
323 // issued. Used to control action dispatch at the next |OnBeginFrame()| call. 323 // issued. Used to control action dispatch at the next |OnBeginFrame()| call.
324 uint32_t outstanding_begin_frame_requests_; 324 uint32_t outstanding_begin_frame_requests_;
325 325
326 bool is_showing_; 326 bool is_showing_;
327 327
328 // Window-specific bits that affect widget visibility. 328 // Window-specific bits that affect widget visibility.
329 bool is_window_visible_; 329 bool is_window_visible_;
330 bool is_window_activity_started_; 330 bool is_window_activity_started_;
331 331
332 // Used to control the appearance of overscroll glow. 332 // Used to customize behavior for virtual reality mode, such as the
333 bool is_showing_overscroll_glow_; 333 // appearance of overscroll glow and the keyboard.
334 bool is_in_vr_;
334 335
335 // ContentViewCoreImpl is our interface to the view system. 336 // ContentViewCoreImpl is our interface to the view system.
336 ContentViewCoreImpl* content_view_core_; 337 ContentViewCoreImpl* content_view_core_;
337 338
338 ImeAdapterAndroid ime_adapter_android_; 339 ImeAdapterAndroid ime_adapter_android_;
339 340
340 // Body background color of the underlying document. 341 // Body background color of the underlying document.
341 SkColor cached_background_color_; 342 SkColor cached_background_color_;
342 343
343 mutable ui::ViewAndroid view_; 344 mutable ui::ViewAndroid view_;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 gfx::Vector2dF last_scroll_offset_; 397 gfx::Vector2dF last_scroll_offset_;
397 398
398 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 399 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
399 400
400 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 401 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
401 }; 402 };
402 403
403 } // namespace content 404 } // namespace content
404 405
405 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 406 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698