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

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

Issue 14969012: components: Create web_modal component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-before-land Created 7 years, 7 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/base/test_browser_window.h ('k') | components/components.gyp » ('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) 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 WindowOpenDisposition TestBrowserWindow::GetDispositionForPopupBounds( 131 WindowOpenDisposition TestBrowserWindow::GetDispositionForPopupBounds(
132 const gfx::Rect& bounds) { 132 const gfx::Rect& bounds) {
133 return NEW_POPUP; 133 return NEW_POPUP;
134 } 134 }
135 135
136 FindBar* TestBrowserWindow::CreateFindBar() { 136 FindBar* TestBrowserWindow::CreateFindBar() {
137 return NULL; 137 return NULL;
138 } 138 }
139 139
140 WebContentsModalDialogHost* 140 web_modal::WebContentsModalDialogHost*
141 TestBrowserWindow::GetWebContentsModalDialogHost() { 141 TestBrowserWindow::GetWebContentsModalDialogHost() {
142 return NULL; 142 return NULL;
143 } 143 }
144 144
145 namespace chrome { 145 namespace chrome {
146 146
147 namespace { 147 namespace {
148 148
149 // Handles destroying a TestBrowserWindow when the Browser it is attached to is 149 // Handles destroying a TestBrowserWindow when the Browser it is attached to is
150 // destroyed. 150 // destroyed.
(...skipping 21 matching lines...) Expand all
172 } // namespace 172 } // namespace
173 173
174 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) { 174 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params) {
175 TestBrowserWindow* window = new TestBrowserWindow; 175 TestBrowserWindow* window = new TestBrowserWindow;
176 new TestBrowserWindowOwner(window); 176 new TestBrowserWindowOwner(window);
177 params->window = window; 177 params->window = window;
178 return new Browser(*params); 178 return new Browser(*params);
179 } 179 }
180 180
181 } // namespace chrome 181 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/test/base/test_browser_window.h ('k') | components/components.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698