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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 2 Created 8 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 #ifndef CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ 5 #ifndef CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_
6 #define CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ 6 #define CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "chrome/browser/ui/browser_window.h" 12 #include "chrome/browser/ui/browser_window.h"
13 #include "chrome/test/base/test_location_bar.h" 13 #include "chrome/test/base/test_location_bar.h"
14 14
15 namespace extensions {
16 class Extension;
17 }
18
15 // An implementation of BrowserWindow used for testing. TestBrowserWindow only 19 // An implementation of BrowserWindow used for testing. TestBrowserWindow only
16 // contains a valid LocationBar, all other getters return NULL. 20 // contains a valid LocationBar, all other getters return NULL.
17 // See BrowserWithTestWindowTest for an example of using this class. 21 // See BrowserWithTestWindowTest for an example of using this class.
18 class TestBrowserWindow : public BrowserWindow { 22 class TestBrowserWindow : public BrowserWindow {
19 public: 23 public:
20 explicit TestBrowserWindow(Browser* browser); 24 explicit TestBrowserWindow(Browser* browser);
21 virtual ~TestBrowserWindow(); 25 virtual ~TestBrowserWindow();
22 26
23 // BrowserWindow: 27 // BrowserWindow:
24 virtual void Show() OVERRIDE {} 28 virtual void Show() OVERRIDE {}
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 virtual void RotatePaneFocus(bool forwards) OVERRIDE {} 71 virtual void RotatePaneFocus(bool forwards) OVERRIDE {}
68 virtual void ShowAppMenu() OVERRIDE {} 72 virtual void ShowAppMenu() OVERRIDE {}
69 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 73 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
70 bool* is_keyboard_shortcut) OVERRIDE; 74 bool* is_keyboard_shortcut) OVERRIDE;
71 virtual void HandleKeyboardEvent( 75 virtual void HandleKeyboardEvent(
72 const NativeWebKeyboardEvent& event) OVERRIDE {} 76 const NativeWebKeyboardEvent& event) OVERRIDE {}
73 virtual void ShowCreateWebAppShortcutsDialog( 77 virtual void ShowCreateWebAppShortcutsDialog(
74 TabContentsWrapper* tab_contents) OVERRIDE {} 78 TabContentsWrapper* tab_contents) OVERRIDE {}
75 virtual void ShowCreateChromeAppShortcutsDialog( 79 virtual void ShowCreateChromeAppShortcutsDialog(
76 Profile* profile, 80 Profile* profile,
77 const Extension* app) OVERRIDE {} 81 const extensions::Extension* app) OVERRIDE {}
78 82
79 virtual bool IsBookmarkBarVisible() const OVERRIDE; 83 virtual bool IsBookmarkBarVisible() const OVERRIDE;
80 virtual bool IsBookmarkBarAnimating() const OVERRIDE; 84 virtual bool IsBookmarkBarAnimating() const OVERRIDE;
81 virtual bool IsTabStripEditable() const OVERRIDE; 85 virtual bool IsTabStripEditable() const OVERRIDE;
82 virtual bool IsToolbarVisible() const OVERRIDE; 86 virtual bool IsToolbarVisible() const OVERRIDE;
83 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; 87 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE;
84 virtual bool IsPanel() const OVERRIDE; 88 virtual bool IsPanel() const OVERRIDE;
85 virtual void ConfirmAddSearchProvider(TemplateURL* template_url, 89 virtual void ConfirmAddSearchProvider(TemplateURL* template_url,
86 Profile* profile) OVERRIDE {} 90 Profile* profile) OVERRIDE {}
87 virtual void ToggleBookmarkBar() OVERRIDE {} 91 virtual void ToggleBookmarkBar() OVERRIDE {}
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 protected: 145 protected:
142 virtual void DestroyBrowser() OVERRIDE {} 146 virtual void DestroyBrowser() OVERRIDE {}
143 147
144 private: 148 private:
145 TestLocationBar location_bar_; 149 TestLocationBar location_bar_;
146 150
147 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); 151 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow);
148 }; 152 };
149 153
150 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ 154 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698