ExtensionSyncService: listen for relevant changes instead of being explicitly called...
[chromium-blink-merge.git] / chrome / browser / chromeos / ui / inline_login_dialog.h
blob9f935325a6b1a4f48249609882d86f735aa305ce
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_UI_INLINE_LOGIN_DIALOG_H_
6 #define CHROME_BROWSER_CHROMEOS_UI_INLINE_LOGIN_DIALOG_H_
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "ui/web_dialogs/web_dialog_delegate.h"
12 namespace content {
13 class BrowserContext;
16 namespace ui {
18 class InlineLoginDialog : public WebDialogDelegate {
19 public:
20 static void Show(content::BrowserContext* context);
22 private:
23 InlineLoginDialog();
24 ~InlineLoginDialog() override;
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;
40 DISALLOW_COPY_AND_ASSIGN(InlineLoginDialog);
43 } // namespace ui
45 #endif // CHROME_BROWSER_CHROMEOS_UI_INLINE_LOGIN_DIALOG_H_