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

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: 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 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 void SetContentCssSize(float width, float height, float dpr); 129 void SetContentCssSize(float width, float height, float dpr);
130 void SetUiCssSize(float width, float height, float dpr); 130 void SetUiCssSize(float width, float height, float dpr);
131 131
132 void ContentFrameWasResized(bool width_changed); 132 void ContentFrameWasResized(bool width_changed);
133 133
134 void ForceExitVr(); 134 void ForceExitVr();
135 135
136 private: 136 private:
137 ~VrShell() override; 137 ~VrShell() override;
138 void SetShowingOverscrollGlow(bool showing_glow); 138 void SetIsInVR(bool is_in_vr);
139 void PostToGlThreadWhenReady(const base::Closure& task); 139 void PostToGlThreadWhenReady(const base::Closure& task);
140 140
141 // content::WebContentsObserver implementation. All called on UI thread. 141 // content::WebContentsObserver implementation. All called on UI thread.
142 void RenderViewHostChanged(content::RenderViewHost* old_host, 142 void RenderViewHostChanged(content::RenderViewHost* old_host,
143 content::RenderViewHost* new_host) override; 143 content::RenderViewHost* new_host) override;
144 void MainFrameWasResized(bool width_changed) override; 144 void MainFrameWasResized(bool width_changed) override;
145 void WebContentsDestroyed() override; 145 void WebContentsDestroyed() override;
146 146
147 std::unique_ptr<UiInterface> html_interface_; 147 std::unique_ptr<UiInterface> html_interface_;
148 148
(...skipping 18 matching lines...) Expand all
167 base::WeakPtrFactory<VrShell> weak_ptr_factory_; 167 base::WeakPtrFactory<VrShell> weak_ptr_factory_;
168 168
169 DISALLOW_COPY_AND_ASSIGN(VrShell); 169 DISALLOW_COPY_AND_ASSIGN(VrShell);
170 }; 170 };
171 171
172 bool RegisterVrShell(JNIEnv* env); 172 bool RegisterVrShell(JNIEnv* env);
173 173
174 } // namespace vr_shell 174 } // namespace vr_shell
175 175
176 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 176 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698