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

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

Issue 6386009: Remove app/win/win_util.h,cc etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with NSApp changes in r73581 Created 9 years, 10 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/plugin/webplugin_proxy.cc ('k') | printing/DEPS » ('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) 2011 The Chromium Authors. All rights reserved. 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 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 <vector>
10
11 #include "chrome/browser/browser_window.h" 9 #include "chrome/browser/browser_window.h"
12 #include "chrome/test/test_location_bar.h" 10 #include "chrome/test/test_location_bar.h"
13 11
14 // An implementation of BrowserWindow used for testing. TestBrowserWindow only 12 // An implementation of BrowserWindow used for testing. TestBrowserWindow only
15 // contains a valid LocationBar, all other getters return NULL. 13 // contains a valid LocationBar, all other getters return NULL.
16 // See BrowserWithTestWindowTest for an example of using this class. 14 // See BrowserWithTestWindowTest for an example of using this class.
17 class TestBrowserWindow : public BrowserWindow { 15 class TestBrowserWindow : public BrowserWindow {
18 public: 16 public:
19 explicit TestBrowserWindow(Browser* browser) {} 17 explicit TestBrowserWindow(Browser* browser) {}
20 virtual ~TestBrowserWindow() {} 18 virtual ~TestBrowserWindow() {}
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 virtual void Cut() {} 102 virtual void Cut() {}
105 virtual void Copy() {} 103 virtual void Copy() {}
106 virtual void Paste() {} 104 virtual void Paste() {}
107 virtual void ToggleTabStripMode() {} 105 virtual void ToggleTabStripMode() {}
108 virtual void OpenTabpose() {} 106 virtual void OpenTabpose() {}
109 virtual void PrepareForInstant() {} 107 virtual void PrepareForInstant() {}
110 virtual void ShowInstant(TabContents* preview_contents) {} 108 virtual void ShowInstant(TabContents* preview_contents) {}
111 virtual void HideInstant(bool instant_is_active) {} 109 virtual void HideInstant(bool instant_is_active) {}
112 virtual gfx::Rect GetInstantBounds() { return gfx::Rect(); } 110 virtual gfx::Rect GetInstantBounds() { return gfx::Rect(); }
113 111
114 virtual gfx::Rect GrabWindowSnapshot(std::vector<unsigned char>*
115 png_representation) {
116 return gfx::Rect();
117 }
118
119 #if defined(OS_CHROMEOS) 112 #if defined(OS_CHROMEOS)
120 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) {} 113 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) {}
121 #endif 114 #endif
122 115
123 protected: 116 protected:
124 virtual void DestroyBrowser() {} 117 virtual void DestroyBrowser() {}
125 118
126 private: 119 private:
127 TestLocationBar location_bar_; 120 TestLocationBar location_bar_;
128 121
129 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); 122 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow);
130 }; 123 };
131 124
132 #endif // CHROME_TEST_TEST_BROWSER_WINDOW_H_ 125 #endif // CHROME_TEST_TEST_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/plugin/webplugin_proxy.cc ('k') | printing/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698