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 7541001: Move more files from chrome/test to chrome/test/base, part #3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « chrome/test/out_of_proc_test_runner.cc ('k') | chrome/test/test_browser_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_TEST_TEST_BROWSER_WINDOW_H_
6 #define CHROME_TEST_TEST_BROWSER_WINDOW_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "build/build_config.h"
12 #include "chrome/browser/ui/browser_window.h"
13 #include "chrome/test/test_location_bar.h"
14
15 // An implementation of BrowserWindow used for testing. TestBrowserWindow only
16 // contains a valid LocationBar, all other getters return NULL.
17 // See BrowserWithTestWindowTest for an example of using this class.
18 class TestBrowserWindow : public BrowserWindow {
19 public:
20 explicit TestBrowserWindow(Browser* browser);
21 virtual ~TestBrowserWindow();
22
23 // BrowserWindow:
24 virtual void Show() OVERRIDE {}
25 virtual void ShowInactive() OVERRIDE {}
26 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE {}
27 virtual void Close() OVERRIDE {}
28 virtual void Activate() OVERRIDE {}
29 virtual void Deactivate() OVERRIDE {}
30 virtual bool IsActive() const OVERRIDE;
31 virtual void FlashFrame() OVERRIDE {}
32 virtual gfx::NativeWindow GetNativeHandle() OVERRIDE;
33 virtual BrowserWindowTesting* GetBrowserWindowTesting() OVERRIDE;
34 virtual StatusBubble* GetStatusBubble() OVERRIDE;
35 virtual void ToolbarSizeChanged(bool is_animating) OVERRIDE {}
36 virtual void UpdateTitleBar() OVERRIDE {}
37 virtual void BookmarkBarStateChanged(
38 BookmarkBar::AnimateChangeType change_type) OVERRIDE {}
39 virtual void UpdateDevTools() OVERRIDE {}
40 virtual void UpdateLoadingAnimations(bool should_animate) OVERRIDE {}
41 virtual void SetStarredState(bool is_starred) OVERRIDE {}
42 virtual gfx::Rect GetRestoredBounds() const OVERRIDE;
43 virtual gfx::Rect GetBounds() const OVERRIDE;
44 virtual bool IsMaximized() const OVERRIDE;
45 virtual void SetFullscreen(bool fullscreen) OVERRIDE {}
46 virtual bool IsFullscreen() const OVERRIDE;
47 virtual bool IsFullscreenBubbleVisible() const OVERRIDE;
48 virtual LocationBar* GetLocationBar() const OVERRIDE;
49 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE {}
50 virtual void UpdateReloadStopState(bool is_loading, bool force) OVERRIDE {}
51 virtual void UpdateToolbar(TabContentsWrapper* contents,
52 bool should_restore_state) OVERRIDE {}
53 virtual void FocusToolbar() OVERRIDE {}
54 virtual void FocusAppMenu() OVERRIDE {}
55 virtual void FocusBookmarksToolbar() OVERRIDE {}
56 virtual void FocusChromeOSStatus() OVERRIDE {}
57 virtual void RotatePaneFocus(bool forwards) OVERRIDE {}
58 virtual void ShowAppMenu() OVERRIDE {}
59 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
60 bool* is_keyboard_shortcut) OVERRIDE;
61 virtual void HandleKeyboardEvent(
62 const NativeWebKeyboardEvent& event) OVERRIDE {}
63 virtual void ShowCreateWebAppShortcutsDialog(
64 TabContentsWrapper* tab_contents) OVERRIDE {}
65 virtual void ShowCreateChromeAppShortcutsDialog(
66 Profile* profile,
67 const Extension* app) OVERRIDE {}
68 virtual void ToggleUseCompactNavigationBar() OVERRIDE {}
69
70 virtual bool IsBookmarkBarVisible() const OVERRIDE;
71 virtual bool IsBookmarkBarAnimating() const OVERRIDE;
72 virtual bool IsTabStripEditable() const OVERRIDE;
73 virtual bool IsToolbarVisible() const OVERRIDE;
74 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url,
75 Profile* profile) OVERRIDE {}
76 virtual void ToggleBookmarkBar() OVERRIDE {}
77 virtual void ShowAboutChromeDialog() OVERRIDE;
78 virtual void ShowUpdateChromeDialog() OVERRIDE {}
79 virtual void ShowTaskManager() OVERRIDE {}
80 virtual void ShowBackgroundPages() OVERRIDE {}
81 virtual void ShowBookmarkBubble(const GURL& url,
82 bool already_bookmarked) OVERRIDE {}
83 virtual bool IsDownloadShelfVisible() const OVERRIDE;
84 virtual DownloadShelf* GetDownloadShelf() OVERRIDE;
85 virtual void ShowRepostFormWarningDialog(
86 TabContents* tab_contents) OVERRIDE {}
87 virtual void ShowCollectedCookiesDialog(TabContents* tab_contents) OVERRIDE {}
88 virtual void ShowThemeInstallBubble() OVERRIDE {}
89 virtual void ConfirmBrowserCloseWithPendingDownloads() OVERRIDE {}
90 virtual void ShowHTMLDialog(HtmlDialogUIDelegate* delegate,
91 gfx::NativeWindow parent_window) OVERRIDE {}
92 virtual void UserChangedTheme() OVERRIDE {}
93 virtual int GetExtraRenderViewHeight() const OVERRIDE;
94 virtual void TabContentsFocused(TabContents* tab_contents) OVERRIDE {}
95 virtual void ShowPageInfo(Profile* profile,
96 const GURL& url,
97 const NavigationEntry::SSLStatus& ssl,
98 bool show_history) OVERRIDE {}
99 virtual void Cut() OVERRIDE {}
100 virtual void Copy() OVERRIDE {}
101 virtual void Paste() OVERRIDE {}
102 virtual void ToggleTabStripMode() OVERRIDE {}
103 #if defined(OS_MACOSX)
104 virtual void OpenTabpose() OVERRIDE {}
105 #endif
106
107 virtual void PrepareForInstant() OVERRIDE {}
108 virtual void ShowInstant(TabContentsWrapper* preview_contents) OVERRIDE {}
109 virtual void HideInstant(bool instant_is_active) OVERRIDE {}
110 virtual gfx::Rect GetInstantBounds() OVERRIDE;
111 virtual WindowOpenDisposition GetDispositionForPopupBounds(
112 const gfx::Rect& bounds) OVERRIDE;
113
114 #if defined(OS_CHROMEOS)
115 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) OVERRIDE {}
116 #endif
117
118 protected:
119 virtual void DestroyBrowser() OVERRIDE {}
120
121 private:
122 TestLocationBar location_bar_;
123
124 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow);
125 };
126
127 #endif // CHROME_TEST_TEST_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/test/out_of_proc_test_runner.cc ('k') | chrome/test/test_browser_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698