Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: chrome/browser/chromeos/external_protocol_dialog.h

Issue 9030032: Get rid of a bunch of tab_contents.h includes from chrome. These are all trivial changes to use W... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_EXTERNAL_PROTOCOL_DIALOG_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTERNAL_PROTOCOL_DIALOG_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTERNAL_PROTOCOL_DIALOG_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTERNAL_PROTOCOL_DIALOG_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "ui/views/window/dialog_delegate.h" 13 #include "ui/views/window/dialog_delegate.h"
14 14
15 class GURL; 15 class GURL;
16 class TabContents; 16
17 namespace content {
18 class WebContents;
19 }
17 20
18 namespace views { 21 namespace views {
19 class MessageBoxView; 22 class MessageBoxView;
20 } 23 }
21 24
22 // An external protocol dialog for ChromeOS. Unlike other platforms, 25 // An external protocol dialog for ChromeOS. Unlike other platforms,
23 // ChromeOS does not support launching external program, therefore, 26 // ChromeOS does not support launching external program, therefore,
24 // this dialog simply says it is not supported. 27 // this dialog simply says it is not supported.
25 class ExternalProtocolDialog : public views::DialogDelegate { 28 class ExternalProtocolDialog : public views::DialogDelegate {
26 public: 29 public:
27 // RunExternalProtocolDialog calls this private constructor. 30 // RunExternalProtocolDialog calls this private constructor.
28 ExternalProtocolDialog(TabContents* tab_contents, const GURL& url); 31 ExternalProtocolDialog(content::WebContents* web_contents, const GURL& url);
29 32
30 virtual ~ExternalProtocolDialog(); 33 virtual ~ExternalProtocolDialog();
31 34
32 // views::DialogDelegate Methods: 35 // views::DialogDelegate Methods:
33 virtual int GetDialogButtons() const OVERRIDE; 36 virtual int GetDialogButtons() const OVERRIDE;
34 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; 37 virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE;
35 virtual string16 GetWindowTitle() const OVERRIDE; 38 virtual string16 GetWindowTitle() const OVERRIDE;
36 virtual void DeleteDelegate() OVERRIDE; 39 virtual void DeleteDelegate() OVERRIDE;
37 virtual bool Accept() OVERRIDE; 40 virtual bool Accept() OVERRIDE;
38 virtual views::View* GetContentsView() OVERRIDE; 41 virtual views::View* GetContentsView() OVERRIDE;
(...skipping 10 matching lines...) Expand all
49 // The time at which this dialog was created. 52 // The time at which this dialog was created.
50 base::TimeTicks creation_time_; 53 base::TimeTicks creation_time_;
51 54
52 // The scheme of the url. 55 // The scheme of the url.
53 std::string scheme_; 56 std::string scheme_;
54 57
55 DISALLOW_COPY_AND_ASSIGN(ExternalProtocolDialog); 58 DISALLOW_COPY_AND_ASSIGN(ExternalProtocolDialog);
56 }; 59 };
57 60
58 #endif // CHROME_BROWSER_CHROMEOS_EXTERNAL_PROTOCOL_DIALOG_H_ 61 #endif // CHROME_BROWSER_CHROMEOS_EXTERNAL_PROTOCOL_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/accessibility/accessibility_util.cc ('k') | chrome/browser/chromeos/external_protocol_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698