OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/notifications/notification_test_util.h" | 5 #include "chrome/browser/notifications/notification_test_util.h" |
6 | 6 |
7 #include "chrome/browser/ui/browser.h" | 7 #include "chrome/browser/ui/browser.h" |
8 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" | 8 #include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" |
| 9 #include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h" |
9 #include "content/public/test/test_utils.h" | 10 #include "content/public/test/test_utils.h" |
10 | 11 |
11 MockNotificationDelegate::MockNotificationDelegate(const std::string& id) | 12 MockNotificationDelegate::MockNotificationDelegate(const std::string& id) |
12 : id_(id) {} | 13 : id_(id) {} |
13 | 14 |
14 MockNotificationDelegate::~MockNotificationDelegate() {} | 15 MockNotificationDelegate::~MockNotificationDelegate() {} |
15 | 16 |
16 std::string MockNotificationDelegate::id() const { return id_; } | 17 std::string MockNotificationDelegate::id() const { return id_; } |
17 | 18 |
18 // ----------------------------------------------------------------------------- | 19 // ----------------------------------------------------------------------------- |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 Browser* browser, bool desired_state) | 145 Browser* browser, bool desired_state) |
145 : browser_(browser), | 146 : browser_(browser), |
146 desired_state_(desired_state) {} | 147 desired_state_(desired_state) {} |
147 | 148 |
148 void FullscreenStateWaiter::Wait() { | 149 void FullscreenStateWaiter::Wait() { |
149 while (desired_state_ != | 150 while (desired_state_ != |
150 browser_->exclusive_access_manager()->context()->IsFullscreen()) { | 151 browser_->exclusive_access_manager()->context()->IsFullscreen()) { |
151 content::RunAllPendingInMessageLoop(); | 152 content::RunAllPendingInMessageLoop(); |
152 } | 153 } |
153 } | 154 } |
OLD | NEW |