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

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

Issue 3060045: Making window.focus() work in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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/renderer/render_widget.cc ('k') | views/window/window.h » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/browser.h" 9 #include "chrome/browser/browser.h"
10 #include "chrome/browser/browser_window.h" 10 #include "chrome/browser/browser_window.h"
11 #include "chrome/test/test_location_bar.h" 11 #include "chrome/test/test_location_bar.h"
12 12
13 // An implementation of BrowserWindow used for testing. TestBrowserWindow only 13 // An implementation of BrowserWindow used for testing. TestBrowserWindow only
14 // contains a valid LocationBar, all other getters return NULL. 14 // contains a valid LocationBar, all other getters return NULL.
15 // See BrowserWithTestWindowTest for an example of using this class. 15 // See BrowserWithTestWindowTest for an example of using this class.
16 class TestBrowserWindow : public BrowserWindow { 16 class TestBrowserWindow : public BrowserWindow {
17 public: 17 public:
18 explicit TestBrowserWindow(Browser* browser) {} 18 explicit TestBrowserWindow(Browser* browser) {}
19 virtual ~TestBrowserWindow() {} 19 virtual ~TestBrowserWindow() {}
20 20
21 virtual void Init() {} 21 virtual void Init() {}
22 virtual void Show() {} 22 virtual void Show() {}
23 virtual void SetBounds(const gfx::Rect& bounds) {} 23 virtual void SetBounds(const gfx::Rect& bounds) {}
24 virtual void Close() {} 24 virtual void Close() {}
25 virtual void Activate() {} 25 virtual void Activate() {}
26 virtual void Deactivate() {}
26 virtual bool IsActive() const { return false; } 27 virtual bool IsActive() const { return false; }
27 virtual void FlashFrame() {} 28 virtual void FlashFrame() {}
28 virtual gfx::NativeWindow GetNativeHandle() { return NULL; } 29 virtual gfx::NativeWindow GetNativeHandle() { return NULL; }
29 virtual BrowserWindowTesting* GetBrowserWindowTesting() { return NULL; } 30 virtual BrowserWindowTesting* GetBrowserWindowTesting() { return NULL; }
30 virtual StatusBubble* GetStatusBubble() { return NULL; } 31 virtual StatusBubble* GetStatusBubble() { return NULL; }
31 virtual void SelectedTabToolbarSizeChanged(bool is_animating) {} 32 virtual void SelectedTabToolbarSizeChanged(bool is_animating) {}
32 virtual void SelectedTabExtensionShelfSizeChanged() {} 33 virtual void SelectedTabExtensionShelfSizeChanged() {}
33 virtual void UpdateTitleBar() {} 34 virtual void UpdateTitleBar() {}
34 virtual void ShelfVisibilityChanged() {} 35 virtual void ShelfVisibilityChanged() {}
35 virtual void UpdateDevTools() {} 36 virtual void UpdateDevTools() {}
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 protected: 109 protected:
109 virtual void DestroyBrowser() {} 110 virtual void DestroyBrowser() {}
110 111
111 private: 112 private:
112 TestLocationBar location_bar_; 113 TestLocationBar location_bar_;
113 114
114 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); 115 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow);
115 }; 116 };
116 117
117 #endif // CHROME_TEST_TEST_BROWSER_WINDOW_H_ 118 #endif // CHROME_TEST_TEST_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/renderer/render_widget.cc ('k') | views/window/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698