OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_VIEWS_EXTERNAL_PROTOCOL_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTERNAL_PROTOCOL_DIALOG_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_EXTERNAL_PROTOCOL_DIALOG_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTERNAL_PROTOCOL_DIALOG_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "ui/views/window/dialog_delegate.h" | 11 #include "ui/views/window/dialog_delegate.h" |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 | 13 |
14 class ProtocolDialogDelegate; | 14 class ProtocolDialogDelegate; |
15 | 15 |
16 namespace views { | 16 namespace views { |
17 class MessageBoxView; | 17 class MessageBoxView; |
18 } | 18 } |
19 | 19 |
20 class ExternalProtocolDialog : public views::DialogDelegate { | 20 class ExternalProtocolDialog : public views::DialogDelegate { |
21 public: | 21 public: |
22 // RunExternalProtocolDialog calls this private constructor. | 22 // RunExternalProtocolDialog calls this private constructor. |
23 ExternalProtocolDialog(scoped_ptr<const ProtocolDialogDelegate> delegate, | 23 ExternalProtocolDialog(scoped_ptr<const ProtocolDialogDelegate> delegate, |
24 int render_process_host_id, | 24 int render_process_host_id, |
25 int routing_id); | 25 int routing_id, |
26 ui::PageTransition page_transition, | |
sky
2015/05/04 19:15:49
AFAICT page_transition and has_user_gesture aren't
qinmin
2015/05/04 19:31:52
ah.. I mistaken this for RunExternalProtocolDialog
| |
27 bool has_user_gesture); | |
26 | 28 |
27 ~ExternalProtocolDialog() override; | 29 ~ExternalProtocolDialog() override; |
28 | 30 |
29 // views::DialogDelegate methods: | 31 // views::DialogDelegate methods: |
30 int GetDefaultDialogButton() const override; | 32 int GetDefaultDialogButton() const override; |
31 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; | 33 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; |
32 base::string16 GetWindowTitle() const override; | 34 base::string16 GetWindowTitle() const override; |
33 void DeleteDelegate() override; | 35 void DeleteDelegate() override; |
34 bool Cancel() override; | 36 bool Cancel() override; |
35 bool Accept() override; | 37 bool Accept() override; |
(...skipping 11 matching lines...) Expand all Loading... | |
47 int render_process_host_id_; | 49 int render_process_host_id_; |
48 int routing_id_; | 50 int routing_id_; |
49 | 51 |
50 // The time at which this dialog was created. | 52 // The time at which this dialog was created. |
51 base::TimeTicks creation_time_; | 53 base::TimeTicks creation_time_; |
52 | 54 |
53 DISALLOW_COPY_AND_ASSIGN(ExternalProtocolDialog); | 55 DISALLOW_COPY_AND_ASSIGN(ExternalProtocolDialog); |
54 }; | 56 }; |
55 | 57 |
56 #endif // CHROME_BROWSER_UI_VIEWS_EXTERNAL_PROTOCOL_DIALOG_H_ | 58 #endif // CHROME_BROWSER_UI_VIEWS_EXTERNAL_PROTOCOL_DIALOG_H_ |
OLD | NEW |