| OLD | NEW |
| (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 |
| OLD | NEW |