Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
|
blundell
2014/08/27 09:12:32
nit: personally i wouldn't change this (same comme
sadrul
2014/08/27 11:49:57
Done.
| |
| 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_PDF_OPEN_PDF_IN_READER_PROMPT_DELEGATE_H_ | 5 #ifndef COMPONENTS_PDF_BROWSER_OPEN_PDF_IN_READER_PROMPT_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_PDF_OPEN_PDF_IN_READER_PROMPT_DELEGATE_H_ | 6 #define COMPONENTS_PDF_BROWSER_OPEN_PDF_IN_READER_PROMPT_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 struct LoadCommittedDetails; | 11 struct LoadCommittedDetails; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace pdf { | |
| 15 | |
| 14 class OpenPDFInReaderPromptDelegate { | 16 class OpenPDFInReaderPromptDelegate { |
|
blundell
2014/08/27 09:12:32
nit: for this class and the other Delegate class,
sadrul
2014/08/27 11:49:57
How strongly do you feel about this? Since this is
blundell
2014/08/27 12:24:48
I feel pretty strongly about it. The ones that you
| |
| 15 public: | 17 public: |
| 16 virtual ~OpenPDFInReaderPromptDelegate() {} | 18 virtual ~OpenPDFInReaderPromptDelegate() {} |
| 17 | 19 |
| 18 virtual base::string16 GetMessageText() const = 0; | 20 virtual base::string16 GetMessageText() const = 0; |
| 19 | 21 |
| 20 virtual base::string16 GetAcceptButtonText() const = 0; | 22 virtual base::string16 GetAcceptButtonText() const = 0; |
| 21 | 23 |
| 22 virtual base::string16 GetCancelButtonText() const = 0; | 24 virtual base::string16 GetCancelButtonText() const = 0; |
| 23 | 25 |
| 24 virtual bool ShouldExpire( | 26 virtual bool ShouldExpire( |
| 25 const content::LoadCommittedDetails& details) const = 0; | 27 const content::LoadCommittedDetails& details) const = 0; |
| 26 | 28 |
| 27 virtual void Accept() = 0; | 29 virtual void Accept() = 0; |
| 28 | 30 |
| 29 virtual void Cancel() = 0; | 31 virtual void Cancel() = 0; |
| 30 }; | 32 }; |
| 31 | 33 |
| 32 #endif // CHROME_BROWSER_UI_PDF_OPEN_PDF_IN_READER_PROMPT_DELEGATE_H_ | 34 } // namespace pdf |
| 35 | |
| 36 #endif // COMPONENTS_PDF_BROWSER_OPEN_PDF_IN_READER_PROMPT_DELEGATE_H_ | |
| OLD | NEW |