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

Side by Side Diff: content/browser/screen_orientation/screen_orientation_dispatcher_host.cc

Issue 196193002: Implement ScreenOrientationProvider for Chrome Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "content/browser/screen_orientation/screen_orientation_dispatcher_host. h" 5 #include "content/browser/screen_orientation/screen_orientation_dispatcher_host. h"
6 6
7 #include "content/browser/screen_orientation/screen_orientation_provider.h" 7 #include "content/browser/screen_orientation/screen_orientation_provider.h"
8 #include "content/common/screen_orientation_messages.h" 8 #include "content/common/screen_orientation_messages.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 provider_->LockOrientation(orientations); 51 provider_->LockOrientation(orientations);
52 } 52 }
53 53
54 void ScreenOrientationDispatcherHost::OnUnlockRequest() { 54 void ScreenOrientationDispatcherHost::OnUnlockRequest() {
55 if (!provider_.get()) 55 if (!provider_.get())
56 return; 56 return;
57 57
58 provider_->UnlockOrientation(); 58 provider_->UnlockOrientation();
59 } 59 }
60 60
61 #if !defined(OS_ANDROID)
61 // static 62 // static
62 ScreenOrientationProvider* ScreenOrientationDispatcherHost::CreateProvider() { 63 ScreenOrientationProvider* ScreenOrientationDispatcherHost::CreateProvider() {
63 return NULL; 64 return NULL;
64 } 65 }
66 #endif
65 67
66 } // namespace content 68 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/browser_jni_registrar.cc ('k') | content/browser/screen_orientation/screen_orientation_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698