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

Side by Side Diff: content/public/browser/render_widget_host_view.h

Issue 2632493005: Disable Android virtual keyboard when in VR shell (Closed)
Patch Set: 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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Tells the View to size itself to the specified size. 57 // Tells the View to size itself to the specified size.
58 virtual void SetSize(const gfx::Size& size) = 0; 58 virtual void SetSize(const gfx::Size& size) = 0;
59 59
60 // Tells the View to size and move itself to the specified size and point in 60 // Tells the View to size and move itself to the specified size and point in
61 // screen space. 61 // screen space.
62 virtual void SetBounds(const gfx::Rect& rect) = 0; 62 virtual void SetBounds(const gfx::Rect& rect) = 0;
63 63
64 // Retrieves the last known scroll position. 64 // Retrieves the last known scroll position.
65 virtual gfx::Vector2dF GetLastScrollOffset() const = 0; 65 virtual gfx::Vector2dF GetLastScrollOffset() const = 0;
66 66
67 // Tells the renderer whether to show the overscroll glow. 67 // Tells the renderer if in vr mode.
mthiesse 2017/01/13 20:32:46 nit: Tells the renderer if it is in vr mode.
Charlie Reis 2017/01/13 20:59:02 Also, please expand vr to virtual reality (since t
asimjour 2017/01/16 19:28:41 Done.
asimjour 2017/01/16 19:28:41 Done.
68 virtual void SetShowingOverscrollGlow(bool showing) = 0; 68 virtual void SetIsInVR(bool is_in_vr) = 0;
69 69
70 // Coordinate points received from a renderer process need to be transformed 70 // Coordinate points received from a renderer process need to be transformed
71 // to the top-level frame's coordinate space. For coordinates received from 71 // to the top-level frame's coordinate space. For coordinates received from
72 // the top-level frame's renderer this is a no-op as they are already 72 // the top-level frame's renderer this is a no-op as they are already
73 // properly transformed; however, coordinates received from an out-of-process 73 // properly transformed; however, coordinates received from an out-of-process
74 // iframe renderer process require transformation. 74 // iframe renderer process require transformation.
75 virtual gfx::Point TransformPointToRootCoordSpace( 75 virtual gfx::Point TransformPointToRootCoordSpace(
76 const gfx::Point& point) = 0; 76 const gfx::Point& point) = 0;
77 77
78 // A floating point variant of the above. PointF values will be snapped to 78 // A floating point variant of the above. PointF values will be snapped to
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // Returns |true| if text is currently being spoken by Mac OS X. 192 // Returns |true| if text is currently being spoken by Mac OS X.
193 virtual bool IsSpeaking() const = 0; 193 virtual bool IsSpeaking() const = 0;
194 // Stops speaking, if it is currently in progress. 194 // Stops speaking, if it is currently in progress.
195 virtual void StopSpeaking() = 0; 195 virtual void StopSpeaking() = 0;
196 #endif // defined(OS_MACOSX) 196 #endif // defined(OS_MACOSX)
197 }; 197 };
198 198
199 } // namespace content 199 } // namespace content
200 200
201 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 201 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698