1 // Copyright 2014 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_UI_CAPTIVE_PORTAL_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_CAPTIVE_PORTAL_VIEW_H_
9 #include "chrome/browser/chromeos/login/ui/simple_web_view_dialog.h"
13 class CaptivePortalWindowProxy
;
15 class CaptivePortalView
: public SimpleWebViewDialog
{
17 CaptivePortalView(Profile
* profile
, CaptivePortalWindowProxy
* proxy
);
18 ~CaptivePortalView() override
;
23 // Overridden from views::WidgetDelegate:
24 bool CanResize() const override
;
25 ui::ModalType
GetModalType() const override
;
26 base::string16
GetWindowTitle() const override
;
27 bool ShouldShowWindowTitle() const override
;
28 views::NonClientFrameView
* CreateNonClientFrameView(
29 views::Widget
* widget
) override
;
31 // Overridden from content::WebContentsDelegate:
32 void NavigationStateChanged(content::WebContents
* source
,
33 content::InvalidateTypes changed_flags
) override
;
34 void LoadingStateChanged(content::WebContents
* source
,
35 bool to_different_document
) override
;
38 // Contains CaptivePortalWindowProxy to be notified when redirection state is
40 CaptivePortalWindowProxy
* proxy_
;
44 DISALLOW_COPY_AND_ASSIGN(CaptivePortalView
);
47 } // namespace chromeos
49 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_CAPTIVE_PORTAL_VIEW_H_