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

Side by Side Diff: chrome/browser/ui/fullscreen_controller_test.cc

Issue 10559071: Exit mouse lock or fullscreen on navigation and reload. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback addressed. Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
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/ui/fullscreen_controller_test.h" 5 #include "chrome/browser/ui/fullscreen_controller_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 #include "chrome/browser/ui/fullscreen_controller.h" 10 #include "chrome/browser/ui/fullscreen_controller.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 127 }
128 128
129 void FullscreenControllerTest::GoBack() { 129 void FullscreenControllerTest::GoBack() {
130 content::TestNavigationObserver observer( 130 content::TestNavigationObserver observer(
131 content::NotificationService::AllSources(), NULL, 1); 131 content::NotificationService::AllSources(), NULL, 1);
132 132
133 browser()->GoBack(CURRENT_TAB); 133 browser()->GoBack(CURRENT_TAB);
134 134
135 observer.Wait(); 135 observer.Wait();
136 } 136 }
137
138 void FullscreenControllerTest::Reload() {
139 content::TestNavigationObserver observer(
140 content::NotificationService::AllSources(), NULL, 1);
141
142 browser()->Reload(CURRENT_TAB);
143
144 observer.Wait();
145 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698