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. 4 5 #ifndef CHROME_BROWSER_CHROMEOS_UI_INLINE_LOGIN_DIALOG_H_ 6 #define CHROME_BROWSER_CHROMEOS_UI_INLINE_LOGIN_DIALOG_H_ 7 8 #include "base/compiler_specific.h" 9 #include "base/macros.h" 10 #include "ui/web_dialogs/web_dialog_delegate.h" 11 12 namespace content { 13 class BrowserContext; 14 } 15 16 namespace ui { 17 18 class InlineLoginDialog : public WebDialogDelegate { 19 public: 20 static void Show(content::BrowserContext* context); 21 22 private: 23 InlineLoginDialog(); 24 virtual ~InlineLoginDialog(); 25 26 // Overriden from WebDialogDelegate. 27 virtual ModalType GetDialogModalType() const OVERRIDE; 28 virtual base::string16 GetDialogTitle() const OVERRIDE; 29 virtual GURL GetDialogContentURL() const OVERRIDE; 30 virtual void GetWebUIMessageHandlers( 31 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; 32 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; 33 virtual std::string GetDialogArgs() const OVERRIDE; 34 virtual bool CanResizeDialog() const OVERRIDE; 35 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; 36 virtual void OnCloseContents(content::WebContents* source, 37 bool* out_close_dialog) OVERRIDE; 38 virtual bool ShouldShowDialogTitle() const OVERRIDE; 39 40 DISALLOW_COPY_AND_ASSIGN(InlineLoginDialog); 41 }; 42 43 } // namespace ui 44 45 #endif // CHROME_BROWSER_CHROMEOS_UI_INLINE_LOGIN_DIALOG_H_ 46