Infobar material design refresh: layout
[chromium-blink-merge.git] / chrome / browser / ui / views / tab_dialogs_views.h
blob8ee285007f52a31998f22264bbf8d06b0f7a5ad3
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_UI_VIEWS_TAB_DIALOGS_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_TAB_DIALOGS_VIEWS_H_
8 #include "base/macros.h"
9 #include "chrome/browser/ui/tab_dialogs.h"
11 // Views implementation of TabDialogs interface.
12 class TabDialogsViews : public TabDialogs {
13 public:
14 explicit TabDialogsViews(content::WebContents* contents);
15 ~TabDialogsViews() override;
17 // TabDialogs:
18 gfx::NativeView GetDialogParentView() const override;
19 void ShowCollectedCookies() override;
20 void ShowHungRendererDialog() override;
21 void HideHungRendererDialog() override;
22 void ShowProfileSigninConfirmation(
23 Browser* browser,
24 Profile* profile,
25 const std::string& username,
26 ui::ProfileSigninConfirmationDelegate* delegate) override;
27 void ShowManagePasswordsBubble(bool user_action) override;
28 void HideManagePasswordsBubble() override;
29 scoped_ptr<ValidationMessageBubble> ShowValidationMessage(
30 const gfx::Rect& anchor_in_root_view,
31 const base::string16& main_text,
32 const base::string16& sub_text) override;
34 private:
35 content::WebContents* web_contents_; // Weak. Owns this.
37 DISALLOW_COPY_AND_ASSIGN(TabDialogsViews);
40 #endif // CHROME_BROWSER_UI_VIEWS_TAB_DIALOGS_VIEWS_H_