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

Side by Side Diff: chrome/browser/extensions/extension_host.h

Issue 22903022: Limit constrained windows to the size of the parent view. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed comments Created 7 years, 3 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
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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 void Close(); 200 void Close();
201 201
202 #if !defined(OS_ANDROID) 202 #if !defined(OS_ANDROID)
203 // ChromeWebModalDialogManagerDelegate 203 // ChromeWebModalDialogManagerDelegate
204 virtual web_modal::WebContentsModalDialogHost* 204 virtual web_modal::WebContentsModalDialogHost*
205 GetWebContentsModalDialogHost() OVERRIDE; 205 GetWebContentsModalDialogHost() OVERRIDE;
206 206
207 // web_modal::WebContentsModalDialogHost 207 // web_modal::WebContentsModalDialogHost
208 virtual gfx::NativeView GetHostView() const OVERRIDE; 208 virtual gfx::NativeView GetHostView() const OVERRIDE;
209 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; 209 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE;
210 virtual gfx::Size GetMaximumDialogSize() OVERRIDE;
210 virtual void AddObserver( 211 virtual void AddObserver(
211 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; 212 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
212 virtual void RemoveObserver( 213 virtual void RemoveObserver(
213 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; 214 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
214 #endif 215 #endif
215 216
216 // ExtensionFunctionDispatcher::Delegate 217 // ExtensionFunctionDispatcher::Delegate
217 virtual WindowController* GetExtensionWindowController() const OVERRIDE; 218 virtual WindowController* GetExtensionWindowController() const OVERRIDE;
218 219
219 // Message handlers. 220 // Message handlers.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 280
280 // Used to measure how long it's been since the host was created. 281 // Used to measure how long it's been since the host was created.
281 PerfTimer since_created_; 282 PerfTimer since_created_;
282 283
283 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 284 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
284 }; 285 };
285 286
286 } // namespace extensions 287 } // namespace extensions
287 288
288 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 289 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698