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

Side by Side Diff: chrome/test/test_browser_window.h

Issue 224023: Don't send tab switching/killing/creating keyboard accelerators to pages. Th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: call Browser:IsReservedAccelerator from tab_contents_view.cc instead of each platform file Created 11 years, 2 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 #ifndef CHROME_TEST_TEST_BROWSER_WINDOW_H_ 5 #ifndef CHROME_TEST_TEST_BROWSER_WINDOW_H_
6 #define CHROME_TEST_TEST_BROWSER_WINDOW_H_ 6 #define CHROME_TEST_TEST_BROWSER_WINDOW_H_
7 7
8 #include "chrome/browser/browser.h" 8 #include "chrome/browser/browser.h"
9 #include "chrome/browser/browser_window.h" 9 #include "chrome/browser/browser_window.h"
10 #include "chrome/browser/views/tabs/tab_strip.h" 10 #include "chrome/browser/views/tabs/tab_strip.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual LocationBar* GetLocationBar() const { 46 virtual LocationBar* GetLocationBar() const {
47 return const_cast<TestLocationBar*>(&location_bar_); 47 return const_cast<TestLocationBar*>(&location_bar_);
48 } 48 }
49 virtual void SetFocusToLocationBar() {} 49 virtual void SetFocusToLocationBar() {}
50 virtual void UpdateStopGoState(bool is_loading, bool force) {} 50 virtual void UpdateStopGoState(bool is_loading, bool force) {}
51 virtual void UpdateToolbar(TabContents* contents, 51 virtual void UpdateToolbar(TabContents* contents,
52 bool should_restore_state) {} 52 bool should_restore_state) {}
53 virtual void FocusToolbar() {} 53 virtual void FocusToolbar() {}
54 virtual void ShowPageMenu() {} 54 virtual void ShowPageMenu() {}
55 virtual void ShowAppMenu() {} 55 virtual void ShowAppMenu() {}
56 virtual int GetCommandId(const NativeWebKeyboardEvent& event) { return -1; }
56 virtual bool IsBookmarkBarVisible() const { return false; } 57 virtual bool IsBookmarkBarVisible() const { return false; }
57 virtual gfx::Rect GetRootWindowResizerRect() const { return gfx::Rect(); } 58 virtual gfx::Rect GetRootWindowResizerRect() const { return gfx::Rect(); }
58 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, 59 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url,
59 Profile* profile) {} 60 Profile* profile) {}
60 virtual void ToggleBookmarkBar() {} 61 virtual void ToggleBookmarkBar() {}
61 virtual void ToggleExtensionShelf() {} 62 virtual void ToggleExtensionShelf() {}
62 virtual void ShowAboutChromeDialog() {} 63 virtual void ShowAboutChromeDialog() {}
63 virtual void ShowTaskManager() {} 64 virtual void ShowTaskManager() {}
64 virtual void ShowBookmarkManager() {} 65 virtual void ShowBookmarkManager() {}
65 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) {} 66 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) {}
(...skipping 24 matching lines...) Expand all
90 91
91 private: 92 private:
92 TabStrip tab_strip_; 93 TabStrip tab_strip_;
93 94
94 TestLocationBar location_bar_; 95 TestLocationBar location_bar_;
95 96
96 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); 97 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow);
97 }; 98 };
98 99
99 #endif // CHROME_TEST_TEST_BROWSER_WINDOW_H_ 100 #endif // CHROME_TEST_TEST_BROWSER_WINDOW_H_
OLDNEW
« chrome/browser/cocoa/browser_window_cocoa.mm ('K') | « chrome/browser/views/frame/browser_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698