| OLD | NEW |
| (Empty) |
| 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 ~InlineLoginDialog() override; | |
| 25 | |
| 26 // Overriden from WebDialogDelegate. | |
| 27 ModalType GetDialogModalType() const override; | |
| 28 base::string16 GetDialogTitle() const override; | |
| 29 GURL GetDialogContentURL() const override; | |
| 30 void GetWebUIMessageHandlers( | |
| 31 std::vector<content::WebUIMessageHandler*>* handlers) const override; | |
| 32 void GetDialogSize(gfx::Size* size) const override; | |
| 33 std::string GetDialogArgs() const override; | |
| 34 bool CanResizeDialog() const override; | |
| 35 void OnDialogClosed(const std::string& json_retval) override; | |
| 36 void OnCloseContents(content::WebContents* source, | |
| 37 bool* out_close_dialog) override; | |
| 38 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_ | |
| OLD | NEW |