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

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

Issue 549603003: Create Mojo service for locking/unlocking screen orientation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Created 6 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/browser/screen_orientation/screen_orientation_context.h"
6
7 namespace content {
8
9 ScreenOrientationContext::ScreenOrientationContext() {
10 }
11
12 ScreenOrientationContext::~ScreenOrientationContext() {
13 }
14
15 void ScreenOrientationContext::AddObserver(Observer* observer) {
16 observer_list_.AddObserver(observer);
17 }
18
19 void ScreenOrientationContext::RemoveObserver(Observer* observer) {
20 observer_list_.RemoveObserver(observer);
21 }
22
23 void ScreenOrientationContext::OnScreenOrientationChange() {
24 FOR_EACH_OBSERVER(Observer, observer_list_, OnScreenOrientationChange());
25 }
26
27 void ScreenOrientationContext::OnNewLockRequest() {
28 FOR_EACH_OBSERVER(Observer, observer_list_, OnNewLockRequest());
29 }
30
31 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698