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

Side by Side Diff: chrome/browser/android/vr_shell/vr_shell.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
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 void SetContentCssSize(float width, float height, float dpr); 132 void SetContentCssSize(float width, float height, float dpr);
133 void SetUiCssSize(float width, float height, float dpr); 133 void SetUiCssSize(float width, float height, float dpr);
134 134
135 void ContentFrameWasResized(bool width_changed); 135 void ContentFrameWasResized(bool width_changed);
136 136
137 void ForceExitVr(); 137 void ForceExitVr();
138 138
139 private: 139 private:
140 ~VrShell() override; 140 ~VrShell() override;
141 void SetShowingOverscrollGlow(bool showing_glow); 141 void SetIsInVR(bool is_in_vr);
142 void PostToGlThreadWhenReady(const base::Closure& task); 142 void PostToGlThreadWhenReady(const base::Closure& task);
143 143
144 // content::WebContentsObserver implementation. All called on UI thread. 144 // content::WebContentsObserver implementation. All called on UI thread.
145 void RenderViewHostChanged(content::RenderViewHost* old_host, 145 void RenderViewHostChanged(content::RenderViewHost* old_host,
146 content::RenderViewHost* new_host) override; 146 content::RenderViewHost* new_host) override;
147 void MainFrameWasResized(bool width_changed) override; 147 void MainFrameWasResized(bool width_changed) override;
148 void WebContentsDestroyed() override; 148 void WebContentsDestroyed() override;
149 149
150 std::unique_ptr<UiInterface> html_interface_; 150 std::unique_ptr<UiInterface> html_interface_;
151 151
(...skipping 18 matching lines...) Expand all
170 base::WeakPtrFactory<VrShell> weak_ptr_factory_; 170 base::WeakPtrFactory<VrShell> weak_ptr_factory_;
171 171
172 DISALLOW_COPY_AND_ASSIGN(VrShell); 172 DISALLOW_COPY_AND_ASSIGN(VrShell);
173 }; 173 };
174 174
175 bool RegisterVrShell(JNIEnv* env); 175 bool RegisterVrShell(JNIEnv* env);
176 176
177 } // namespace vr_shell 177 } // namespace vr_shell
178 178
179 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 179 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698