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

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

Issue 10933085: Update ConstrainedWindowViews appearance according to mock (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Browser test fixes Created 8 years, 2 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
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
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 126 }
127 127
128 bool TestBrowserWindow::IsInstantTabShowing() { 128 bool TestBrowserWindow::IsInstantTabShowing() {
129 return false; 129 return false;
130 } 130 }
131 131
132 FindBar* TestBrowserWindow::CreateFindBar() { 132 FindBar* TestBrowserWindow::CreateFindBar() {
133 return NULL; 133 return NULL;
134 } 134 }
135 135
136 int TestBrowserWindow::GetConstrainedWindowTopY() {
137 return -1;
138 }
139
136 namespace chrome { 140 namespace chrome {
137 141
138 namespace { 142 namespace {
139 143
140 // Handles destroying a TestBrowserWindow when the Browser it is attached to is 144 // Handles destroying a TestBrowserWindow when the Browser it is attached to is
141 // destroyed. 145 // destroyed.
142 class TestBrowserWindowOwner : public chrome::BrowserListObserver { 146 class TestBrowserWindowOwner : public chrome::BrowserListObserver {
143 public: 147 public:
144 explicit TestBrowserWindowOwner(TestBrowserWindow* window) : window_(window) { 148 explicit TestBrowserWindowOwner(TestBrowserWindow* window) : window_(window) {
145 BrowserList::AddObserver(this); 149 BrowserList::AddObserver(this);
(...skipping 22 matching lines...) Expand all
168 } 172 }
169 173
170 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) { 174 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) {
171 TestBrowserWindow* window = new TestBrowserWindow; 175 TestBrowserWindow* window = new TestBrowserWindow;
172 new TestBrowserWindowOwner(window); 176 new TestBrowserWindowOwner(window);
173 params->window = window; 177 params->window = window;
174 return new Browser(*params); 178 return new Browser(*params);
175 } 179 }
176 180
177 } // namespace chrome 181 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698