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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_CAPTIVE_PORTAL_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_CAPTIVE_PORTAL_VIEW_H_
9 #include "chrome/browser/chromeos/login/simple_web_view_dialog.h"
13 class CaptivePortalWindowProxy
;
15 class CaptivePortalView
: public SimpleWebViewDialog
{
17 CaptivePortalView(Profile
* profile
, CaptivePortalWindowProxy
* proxy
);
18 virtual ~CaptivePortalView();
23 // Overridden from views::WidgetDelegate:
24 virtual bool CanResize() const OVERRIDE
;
25 virtual ui::ModalType
GetModalType() const OVERRIDE
;
26 virtual base::string16
GetWindowTitle() const OVERRIDE
;
27 virtual bool ShouldShowWindowTitle() const OVERRIDE
;
28 virtual views::NonClientFrameView
* CreateNonClientFrameView(
29 views::Widget
* widget
) OVERRIDE
;
31 // Overridden from content::WebContentsDelegate:
32 virtual void NavigationStateChanged(const content::WebContents
* source
,
33 unsigned changed_flags
) OVERRIDE
;
34 virtual void LoadingStateChanged(content::WebContents
* source
) OVERRIDE
;
37 // Contains CaptivePortalWindowProxy to be notified when redirection state is
39 CaptivePortalWindowProxy
* proxy_
;
43 DISALLOW_COPY_AND_ASSIGN(CaptivePortalView
);
46 } // namespace chromeos
48 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_CAPTIVE_PORTAL_VIEW_H_