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

Unified Diff: chrome/test/base/test_browser_window.cc

Issue 2781633003: Allow keyboard shortcuts can be captured by webpage when toolbar is not visible (Closed)
Patch Set: Resolve review comments Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/base/test_browser_window.cc
diff --git a/chrome/test/base/test_browser_window.cc b/chrome/test/base/test_browser_window.cc
index c84cbe9a39e8315d70c5feee12cbb2b9e01eb2cc..2676812a80b99cb47256de94aa54fdba5bfa85dd 100644
--- a/chrome/test/base/test_browser_window.cc
+++ b/chrome/test/base/test_browser_window.cc
@@ -143,6 +143,10 @@ bool TestBrowserWindow::IsToolbarVisible() const {
return false;
}
+bool TestBrowserWindow::IsToolbarShowing() const {
+ return IsToolbarVisible();
sky 2017/04/06 20:38:10 Is there a reason to have this call IsToolbarVisib
Hzj_jie 2017/04/06 20:42:09 In platform other than Mac OS, the toolbar is show
sky 2017/04/06 21:43:56 This is a test class though, can't the implementat
Hzj_jie 2017/04/06 21:48:11 Yes, BrowserWindowCocoa overrides this function an
sky 2017/04/06 23:26:00 Sorry, I'm confused. Why can't this return false?
+}
+
ShowTranslateBubbleResult TestBrowserWindow::ShowTranslateBubble(
content::WebContents* contents,
translate::TranslateStep step,
« chrome/browser/ui/browser_window.h ('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