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

Side by Side Diff: chrome/browser/chromeos/login/webui_login_view.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: No initializer 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/webui_login_view.cc » ('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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 const ui::Accelerator& accelerator) OVERRIDE; 56 const ui::Accelerator& accelerator) OVERRIDE;
57 virtual const char* GetClassName() const OVERRIDE; 57 virtual const char* GetClassName() const OVERRIDE;
58 58
59 // Overridden from ChromeWebModalDialogManagerDelegate: 59 // Overridden from ChromeWebModalDialogManagerDelegate:
60 virtual web_modal::WebContentsModalDialogHost* 60 virtual web_modal::WebContentsModalDialogHost*
61 GetWebContentsModalDialogHost() OVERRIDE; 61 GetWebContentsModalDialogHost() OVERRIDE;
62 62
63 // Overridden from web_modal::WebContentsModalDialogHost: 63 // Overridden from web_modal::WebContentsModalDialogHost:
64 virtual gfx::NativeView GetHostView() const OVERRIDE; 64 virtual gfx::NativeView GetHostView() const OVERRIDE;
65 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; 65 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE;
66 virtual gfx::Size GetMaximumDialogSize() OVERRIDE;
66 virtual void AddObserver( 67 virtual void AddObserver(
67 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; 68 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
68 virtual void RemoveObserver( 69 virtual void RemoveObserver(
69 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; 70 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
70 71
71 // Gets the native window from the view widget. 72 // Gets the native window from the view widget.
72 gfx::NativeWindow GetNativeWindow() const; 73 gfx::NativeWindow GetNativeWindow() const;
73 74
74 // Loads given page. Should be called after Init() has been called. 75 // Loads given page. Should be called after Init() has been called.
75 void LoadURL(const GURL& url); 76 void LoadURL(const GURL& url);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; 167 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_;
167 168
168 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; 169 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_;
169 170
170 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); 171 DISALLOW_COPY_AND_ASSIGN(WebUILoginView);
171 }; 172 };
172 173
173 } // namespace chromeos 174 } // namespace chromeos
174 175
175 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ 176 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/webui_login_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698