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

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

Issue 1983803002: Added notification when user presses backspace to use new shortcut. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@subtle-notification-view-refactor
Patch Set: Respond to pkasting review. Created 4 years, 7 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
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
122 LocationBar* TestBrowserWindow::GetLocationBar() const { 124 LocationBar* TestBrowserWindow::GetLocationBar() const {
123 return const_cast<TestLocationBar*>(&location_bar_); 125 return const_cast<TestLocationBar*>(&location_bar_);
124 } 126 }
125 127
126 ToolbarActionsBar* TestBrowserWindow::GetToolbarActionsBar() { 128 ToolbarActionsBar* TestBrowserWindow::GetToolbarActionsBar() {
127 return nullptr; 129 return nullptr;
128 } 130 }
129 131
130 bool TestBrowserWindow::PreHandleKeyboardEvent( 132 bool TestBrowserWindow::PreHandleKeyboardEvent(
131 const content::NativeWebKeyboardEvent& event, 133 const content::NativeWebKeyboardEvent& event,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 } 208 }
207 209
208 TestBrowserWindowOwner::~TestBrowserWindowOwner() { 210 TestBrowserWindowOwner::~TestBrowserWindowOwner() {
209 BrowserList::RemoveObserver(this); 211 BrowserList::RemoveObserver(this);
210 } 212 }
211 213
212 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) { 214 void TestBrowserWindowOwner::OnBrowserRemoved(Browser* browser) {
213 if (browser->window() == window_.get()) 215 if (browser->window() == window_.get())
214 delete this; 216 delete this;
215 } 217 }
OLDNEW
« chrome/browser/ui/views/subtle_notification_view.cc ('K') | « 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