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

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

Issue 11369237: Add a way to fetch window frame metrics from NativeShellWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comments Created 8 years, 1 month 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
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 #include "chrome/test/base/test_browser_window.h" 5 #include "chrome/test/base/test_browser_window.h"
6 6
7 #include "chrome/browser/ui/browser_list.h" 7 #include "chrome/browser/ui/browser_list.h"
8 #include "chrome/browser/ui/browser_list_observer.h" 8 #include "chrome/browser/ui/browser_list_observer.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 10
11 using content::NativeWebKeyboardEvent; 11 using content::NativeWebKeyboardEvent;
12 12
13 TestBrowserWindow::TestBrowserWindow() {} 13 TestBrowserWindow::TestBrowserWindow() {}
14 14
15 TestBrowserWindow::~TestBrowserWindow() {} 15 TestBrowserWindow::~TestBrowserWindow() {}
16 16
17 bool TestBrowserWindow::IsActive() const { 17 bool TestBrowserWindow::IsActive() const {
18 return false; 18 return false;
19 } 19 }
20 20
21 bool TestBrowserWindow::IsAlwaysOnTop() const { 21 bool TestBrowserWindow::IsAlwaysOnTop() const {
22 return false; 22 return false;
23 } 23 }
24 24
25 gfx::Rect TestBrowserWindow::ContentBoundsForWindowBounds(
26 const gfx::Rect& window_bounds) const {
27 return window_bounds;
28 }
29
30 gfx::Rect TestBrowserWindow::WindowBoundsForContentBounds(
31 const gfx::Rect& content_bounds) const {
32 return content_bounds;
33 }
34
25 gfx::NativeWindow TestBrowserWindow::GetNativeWindow() { 35 gfx::NativeWindow TestBrowserWindow::GetNativeWindow() {
26 return NULL; 36 return NULL;
27 } 37 }
28 38
29 BrowserWindowTesting* TestBrowserWindow::GetBrowserWindowTesting() { 39 BrowserWindowTesting* TestBrowserWindow::GetBrowserWindowTesting() {
30 return NULL; 40 return NULL;
31 } 41 }
32 42
33 StatusBubble* TestBrowserWindow::GetStatusBubble() { 43 StatusBubble* TestBrowserWindow::GetStatusBubble() {
34 return NULL; 44 return NULL;
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 } 182 }
173 183
174 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) { 184 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) {
175 TestBrowserWindow* window = new TestBrowserWindow; 185 TestBrowserWindow* window = new TestBrowserWindow;
176 new TestBrowserWindowOwner(window); 186 new TestBrowserWindowOwner(window);
177 params->window = window; 187 params->window = window;
178 return new Browser(*params); 188 return new Browser(*params);
179 } 189 }
180 190
181 } // namespace chrome 191 } // namespace chrome
OLDNEW
« chrome/browser/ui/gtk/browser_window_gtk.cc ('K') | « chrome/test/base/test_browser_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698