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

Side by Side Diff: chrome/test/base/test_browser_window.cc

Issue 2065283002: Add heuristics to limit showing of new backspace UI bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 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
« no previous file with comments | « chrome/test/base/test_browser_window.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/test/base/test_browser_window.h" 5 #include "chrome/test/base/test_browser_window.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/browser/ui/browser_list.h" 9 #include "chrome/browser/ui/browser_list.h"
10 #include "chrome/browser/ui/browser_list_observer.h" 10 #include "chrome/browser/ui/browser_list_observer.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } 112 }
113 113
114 bool TestBrowserWindow::IsFullscreen() const { 114 bool TestBrowserWindow::IsFullscreen() const {
115 return false; 115 return false;
116 } 116 }
117 117
118 bool TestBrowserWindow::IsFullscreenBubbleVisible() const { 118 bool TestBrowserWindow::IsFullscreenBubbleVisible() const {
119 return false; 119 return false;
120 } 120 }
121 121
122 void TestBrowserWindow::ShowNewBackShortcutBubble(bool forward) {}
123
124 LocationBar* TestBrowserWindow::GetLocationBar() const { 122 LocationBar* TestBrowserWindow::GetLocationBar() const {
125 return const_cast<TestLocationBar*>(&location_bar_); 123 return const_cast<TestLocationBar*>(&location_bar_);
126 } 124 }
127 125
128 ToolbarActionsBar* TestBrowserWindow::GetToolbarActionsBar() { 126 ToolbarActionsBar* TestBrowserWindow::GetToolbarActionsBar() {
129 return nullptr; 127 return nullptr;
130 } 128 }
131 129
132 bool TestBrowserWindow::PreHandleKeyboardEvent( 130 bool TestBrowserWindow::PreHandleKeyboardEvent(
133 const content::NativeWebKeyboardEvent& event, 131 const content::NativeWebKeyboardEvent& event,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 206 }
209 207
210 TestBrowserWindowOwner::~TestBrowserWindowOwner() { 208 TestBrowserWindowOwner::~TestBrowserWindowOwner() {
211 BrowserList::RemoveObserver(this); 209 BrowserList::RemoveObserver(this);
212 } 210 }
213 211
214 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { 212 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) {
215 if (browser->window() == window_.get()) 213 if (browser->window() == window_.get())
216 delete this; 214 delete this;
217 } 215 }
OLDNEW
« no previous file with comments | « chrome/test/base/test_browser_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698