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

Side by Side Diff: chrome/browser/ui/pdf/open_pdf_in_reader_prompt_delegate.h

Issue 10905304: Reland 156033 - Add an icon and bubble to the location bar to open PDFs in Reader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: , Created 8 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/ui/pdf/pdf_tab_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_PDF_OPEN_PDF_IN_READER_PROMPT_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_PDF_OPEN_PDF_IN_READER_PROMPT_DELEGATE_H_
6 #define CHROME_BROWSER_UI_PDF_OPEN_PDF_IN_READER_PROMPT_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_PDF_OPEN_PDF_IN_READER_PROMPT_DELEGATE_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 9
10 namespace content {
11 struct LoadCommittedDetails;
12 }
13
10 class OpenPDFInReaderPromptDelegate { 14 class OpenPDFInReaderPromptDelegate {
11 public: 15 public:
12 virtual ~OpenPDFInReaderPromptDelegate() {} 16 virtual ~OpenPDFInReaderPromptDelegate() {}
13 17
14 virtual string16 GetMessageText() const = 0; 18 virtual string16 GetMessageText() const = 0;
15 19
16 virtual string16 GetAcceptButtonText() const = 0; 20 virtual string16 GetAcceptButtonText() const = 0;
17 21
18 virtual string16 GetCancelButtonText() const = 0; 22 virtual string16 GetCancelButtonText() const = 0;
19 23
24 virtual bool ShouldExpire(
25 const content::LoadCommittedDetails& details) const = 0;
26
20 virtual void Accept() = 0; 27 virtual void Accept() = 0;
21 28
22 virtual void Cancel() = 0; 29 virtual void Cancel() = 0;
23 }; 30 };
24 31
25 #endif // CHROME_BROWSER_UI_PDF_OPEN_PDF_IN_READER_PROMPT_DELEGATE_H_ 32 #endif // CHROME_BROWSER_UI_PDF_OPEN_PDF_IN_READER_PROMPT_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/pdf/pdf_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698