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

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

Issue 400012: Refactor the keyboard events handling code related to RenderViewHostDelegate:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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
« no previous file with comments | « chrome/renderer/render_widget.cc ('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) 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/test/test_location_bar.h" 10 #include "chrome/test/test_location_bar.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual LocationBar* GetLocationBar() const { 43 virtual LocationBar* GetLocationBar() const {
44 return const_cast<TestLocationBar*>(&location_bar_); 44 return const_cast<TestLocationBar*>(&location_bar_);
45 } 45 }
46 virtual void SetFocusToLocationBar() {} 46 virtual void SetFocusToLocationBar() {}
47 virtual void UpdateStopGoState(bool is_loading, bool force) {} 47 virtual void UpdateStopGoState(bool is_loading, bool force) {}
48 virtual void UpdateToolbar(TabContents* contents, 48 virtual void UpdateToolbar(TabContents* contents,
49 bool should_restore_state) {} 49 bool should_restore_state) {}
50 virtual void FocusToolbar() {} 50 virtual void FocusToolbar() {}
51 virtual void ShowPageMenu() {} 51 virtual void ShowPageMenu() {}
52 virtual void ShowAppMenu() {} 52 virtual void ShowAppMenu() {}
53 virtual int GetCommandId(const NativeWebKeyboardEvent& event) { return -1; } 53 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
54 bool* is_keyboard_shortcut) {
55 return false;
56 }
57 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {}
54 virtual void ShowCreateShortcutsDialog(TabContents* tab_contents) {} 58 virtual void ShowCreateShortcutsDialog(TabContents* tab_contents) {}
55 #if defined(TOOLKIT_VIEWS) 59 #if defined(TOOLKIT_VIEWS)
56 virtual void ToggleCompactNavigationBar() {} 60 virtual void ToggleCompactNavigationBar() {}
57 #endif // defined(TOOLKIT_VIEWS) 61 #endif // defined(TOOLKIT_VIEWS)
58 62
59 virtual bool IsBookmarkBarVisible() const { return false; } 63 virtual bool IsBookmarkBarVisible() const { return false; }
60 virtual bool IsToolbarVisible() const { return false; } 64 virtual bool IsToolbarVisible() const { return false; }
61 virtual gfx::Rect GetRootWindowResizerRect() const { return gfx::Rect(); } 65 virtual gfx::Rect GetRootWindowResizerRect() const { return gfx::Rect(); }
62 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, 66 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url,
63 Profile* profile) {} 67 Profile* profile) {}
(...skipping 29 matching lines...) Expand all
93 protected: 97 protected:
94 virtual void DestroyBrowser() {} 98 virtual void DestroyBrowser() {}
95 99
96 private: 100 private:
97 TestLocationBar location_bar_; 101 TestLocationBar location_bar_;
98 102
99 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); 103 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow);
100 }; 104 };
101 105
102 #endif // CHROME_TEST_TEST_BROWSER_WINDOW_H_ 106 #endif // CHROME_TEST_TEST_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698