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

Side by Side Diff: pdf/out_of_process_instance.h

Issue 830433002: Navigation to relative fragments does not work correctly for OOP pdf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes after taking all nameddest at load time. Created 5 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
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 PDF_OUT_OF_PROCESS_INSTANCE_H_ 5 #ifndef PDF_OUT_OF_PROCESS_INSTANCE_H_
6 #define PDF_OUT_OF_PROCESS_INSTANCE_H_ 6 #define PDF_OUT_OF_PROCESS_INSTANCE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 14 matching lines...) Expand all
25 #include "ppapi/cpp/image_data.h" 25 #include "ppapi/cpp/image_data.h"
26 #include "ppapi/cpp/input_event.h" 26 #include "ppapi/cpp/input_event.h"
27 #include "ppapi/cpp/instance.h" 27 #include "ppapi/cpp/instance.h"
28 #include "ppapi/cpp/private/find_private.h" 28 #include "ppapi/cpp/private/find_private.h"
29 #include "ppapi/cpp/private/uma_private.h" 29 #include "ppapi/cpp/private/uma_private.h"
30 #include "ppapi/cpp/url_loader.h" 30 #include "ppapi/cpp/url_loader.h"
31 #include "ppapi/utility/completion_callback_factory.h" 31 #include "ppapi/utility/completion_callback_factory.h"
32 32
33 namespace pp { 33 namespace pp {
34 class TextInput_Dev; 34 class TextInput_Dev;
35 class VarDictionary;
35 } 36 }
36 37
37 namespace chrome_pdf { 38 namespace chrome_pdf {
38 39
39 class OutOfProcessInstance : public pp::Instance, 40 class OutOfProcessInstance : public pp::Instance,
40 public pp::Find_Private, 41 public pp::Find_Private,
41 public pp::Printing_Dev, 42 public pp::Printing_Dev,
42 public pp::Selection_Dev, 43 public pp::Selection_Dev,
43 public PaintManager::Client, 44 public PaintManager::Client,
44 public PDFEngine::Client, 45 public PDFEngine::Client,
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 std::string GetLocalizedString(PP_ResourceString id); 185 std::string GetLocalizedString(PP_ResourceString id);
185 186
186 void UserMetricsRecordAction(const std::string& action); 187 void UserMetricsRecordAction(const std::string& action);
187 188
188 enum DocumentLoadState { 189 enum DocumentLoadState {
189 LOAD_STATE_LOADING, 190 LOAD_STATE_LOADING,
190 LOAD_STATE_COMPLETE, 191 LOAD_STATE_COMPLETE,
191 LOAD_STATE_FAILED, 192 LOAD_STATE_FAILED,
192 }; 193 };
193 194
195 void GetNamedDestinations(pp::VarDictionary& named_destinations);
194 // Set new zoom scale. 196 // Set new zoom scale.
195 void SetZoom(double scale); 197 void SetZoom(double scale);
196 198
197 // Reduces the document to 1 page and appends |print_preview_page_count_| 199 // Reduces the document to 1 page and appends |print_preview_page_count_|
198 // blank pages to the document for print preview. 200 // blank pages to the document for print preview.
199 void AppendBlankPrintPreviewPages(); 201 void AppendBlankPrintPreviewPages();
200 202
201 // Process the preview page data information. |src_url| specifies the preview 203 // Process the preview page data information. |src_url| specifies the preview
202 // page data location. The |src_url| is in the format: 204 // page data location. The |src_url| is in the format:
203 // chrome://print/id/page_number/print.pdf 205 // chrome://print/id/page_number/print.pdf
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // zooming the plugin so that flickering doesn't occur while zooming. 342 // zooming the plugin so that flickering doesn't occur while zooming.
341 bool stop_scrolling_; 343 bool stop_scrolling_;
342 344
343 // The callback for receiving the password from the page. 345 // The callback for receiving the password from the page.
344 scoped_ptr<pp::CompletionCallbackWithOutput<pp::Var> > password_callback_; 346 scoped_ptr<pp::CompletionCallbackWithOutput<pp::Var> > password_callback_;
345 }; 347 };
346 348
347 } // namespace chrome_pdf 349 } // namespace chrome_pdf
348 350
349 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ 351 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698