Chromium Code Reviews| 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 PDF_PDF_ENGINE_H_ | 5 #ifndef PDF_PDF_ENGINE_H_ |
| 6 #define PDF_PDF_ENGINE_H_ | 6 #define PDF_PDF_ENGINE_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 22 #include "ppapi/cpp/completion_callback.h" | 22 #include "ppapi/cpp/completion_callback.h" |
| 23 #include "ppapi/cpp/image_data.h" | 23 #include "ppapi/cpp/image_data.h" |
| 24 #include "ppapi/cpp/rect.h" | 24 #include "ppapi/cpp/rect.h" |
| 25 #include "ppapi/cpp/size.h" | 25 #include "ppapi/cpp/size.h" |
| 26 #include "ppapi/cpp/url_loader.h" | 26 #include "ppapi/cpp/url_loader.h" |
| 27 | 27 |
| 28 namespace pp { | 28 namespace pp { |
| 29 class InputEvent; | 29 class InputEvent; |
| 30 } | 30 } |
| 31 | 31 |
| 32 #define kBackgroundColorR 204 | 32 const uint32 kBackgroundColor = 0xFFCCCCCC; |
|
Peter Kasting
2014/07/08 21:28:25
The old #defines treated the relevant values as si
| |
| 33 #define kBackgroundColorG 204 | |
| 34 #define kBackgroundColorB 204 | |
| 35 #define kBackgroundColorA 255 | |
| 36 | 33 |
| 37 namespace chrome_pdf { | 34 namespace chrome_pdf { |
| 38 | 35 |
| 39 class Stream; | 36 class Stream; |
| 40 | 37 |
| 41 #if defined(OS_MACOSX) | 38 #if defined(OS_MACOSX) |
| 42 const uint32 kDefaultKeyModifier = PP_INPUTEVENT_MODIFIER_METAKEY; | 39 const uint32 kDefaultKeyModifier = PP_INPUTEVENT_MODIFIER_METAKEY; |
| 43 #else // !OS_MACOSX | 40 #else // !OS_MACOSX |
| 44 const uint32 kDefaultKeyModifier = PP_INPUTEVENT_MODIFIER_CONTROLKEY; | 41 const uint32 kDefaultKeyModifier = PP_INPUTEVENT_MODIFIER_CONTROLKEY; |
| 45 #endif // OS_MACOSX | 42 #endif // OS_MACOSX |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 310 void* bitmap_buffer) = 0; | 307 void* bitmap_buffer) = 0; |
| 311 virtual bool GetPDFDocInfo(const void* pdf_buffer, | 308 virtual bool GetPDFDocInfo(const void* pdf_buffer, |
| 312 int buffer_size, | 309 int buffer_size, |
| 313 int* page_count, | 310 int* page_count, |
| 314 double* max_page_width) = 0; | 311 double* max_page_width) = 0; |
| 315 }; | 312 }; |
| 316 | 313 |
| 317 } // namespace chrome_pdf | 314 } // namespace chrome_pdf |
| 318 | 315 |
| 319 #endif // PDF_PDF_ENGINE_H_ | 316 #endif // PDF_PDF_ENGINE_H_ |
| OLD | NEW |