Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / tab_dialogs_cocoa.h
blob690e0686cc56009d5a5d3bc3a4374c2a5b3ad1e1
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_COCOA_TAB_DIALOGS_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_TAB_DIALOGS_COCOA_H_
8 #include "chrome/browser/ui/tab_dialogs.h"
10 // Cocoa implementation of TabDialogs interface.
11 class TabDialogsCocoa : public TabDialogs {
12 public:
13 explicit TabDialogsCocoa(content::WebContents* contents);
14 ~TabDialogsCocoa() override;
16 // TabDialogs:
17 gfx::NativeView GetDialogParentView() const override;
18 void ShowCollectedCookies() override;
19 void ShowHungRendererDialog() override;
20 void HideHungRendererDialog() override;
21 void ShowProfileSigninConfirmation(
22 Browser* browser,
23 Profile* profile,
24 const std::string& username,
25 ui::ProfileSigninConfirmationDelegate* delegate) override;
26 void ShowManagePasswordsBubble(bool user_action) override;
27 void HideManagePasswordsBubble() override;
28 scoped_ptr<ValidationMessageBubble> ShowValidationMessage(
29 const gfx::Rect& anchor_in_root_view,
30 const base::string16& main_text,
31 const base::string16& sub_text) override;
33 private:
34 content::WebContents* web_contents_; // Weak. Owns this.
36 DISALLOW_COPY_AND_ASSIGN(TabDialogsCocoa);
39 #endif // CHROME_BROWSER_UI_COCOA_TAB_DIALOGS_COCOA_H_