Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / sync / inline_login_dialog.h
blob7039d9a2a17c19d9ad5e96efef25096137967eae
1 // Copyright 2013 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_UI_SYNC_INLINE_LOGIN_DIALOG_H_
6 #define CHROME_BROWSER_UI_SYNC_INLINE_LOGIN_DIALOG_H_
8 #include <string>
9 #include <vector>
11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h"
13 #include "ui/web_dialogs/web_dialog_delegate.h"
15 class Profile;
17 // A dialog to host the inline sign-in WebUI. Currently, it loads
18 // chrome:://chrome-signin and dismisses itself when the sign-in is finished
19 // successfully.
20 class InlineLoginDialog : public ui::WebDialogDelegate {
21 public:
22 static void Show(Profile* profile);
24 private:
25 explicit InlineLoginDialog(Profile* profile);
27 // ui::WebDialogDelegate overrides:
28 ui::ModalType GetDialogModalType() const override;
29 base::string16 GetDialogTitle() const override;
30 GURL GetDialogContentURL() const override;
31 void GetWebUIMessageHandlers(
32 std::vector<content::WebUIMessageHandler*>* handlers) const override;
33 void GetDialogSize(gfx::Size* size) const override;
34 std::string GetDialogArgs() 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 bool HandleContextMenu(const content::ContextMenuParams& params) override;
41 Profile* profile_;
43 DISALLOW_COPY_AND_ASSIGN(InlineLoginDialog);
46 #endif // CHROME_BROWSER_UI_SYNC_INLINE_LOGIN_DIALOG_H_