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 #include "pdf/instance.h" | 5 #include "pdf/instance.h" |
6 | 6 |
7 #include <algorithm> // for min() | 7 #include <algorithm> // for min() |
8 #define _USE_MATH_DEFINES // for M_PI | 8 #define _USE_MATH_DEFINES // for M_PI |
9 #include <cmath> // for log() and pow() | 9 #include <cmath> // for log() and pow() |
10 #include <math.h> | 10 #include <math.h> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 namespace chrome_pdf { | 49 namespace chrome_pdf { |
50 | 50 |
51 struct ToolbarButtonInfo { | 51 struct ToolbarButtonInfo { |
52 uint32 id; | 52 uint32 id; |
53 Button::ButtonStyle style; | 53 Button::ButtonStyle style; |
54 PP_ResourceImage normal; | 54 PP_ResourceImage normal; |
55 PP_ResourceImage highlighted; | 55 PP_ResourceImage highlighted; |
56 PP_ResourceImage pressed; | 56 PP_ResourceImage pressed; |
57 }; | 57 }; |
58 | 58 |
59 const uint32 kBackgroundColor = 0xFFCCCCCC; | |
raymes
2015/01/29 05:26:32
We need to call SetBackgroundColor in this file or
Alexandre Carlton
2015/01/29 06:05:17
Done.
| |
60 | |
59 namespace { | 61 namespace { |
60 | 62 |
61 // Uncomment following #define to enable thumbnails. | 63 // Uncomment following #define to enable thumbnails. |
62 // #define ENABLE_THUMBNAILS | 64 // #define ENABLE_THUMBNAILS |
63 | 65 |
64 const uint32 kToolbarSplashTimeoutMs = 6000; | 66 const uint32 kToolbarSplashTimeoutMs = 6000; |
65 const uint32 kMessageTextColor = 0xFF575757; | 67 const uint32 kMessageTextColor = 0xFF575757; |
66 const uint32 kMessageTextSize = 22; | 68 const uint32 kMessageTextSize = 22; |
67 const uint32 kProgressFadeTimeoutMs = 250; | 69 const uint32 kProgressFadeTimeoutMs = 250; |
68 const uint32 kProgressDelayTimeoutMs = 1000; | 70 const uint32 kProgressDelayTimeoutMs = 1000; |
(...skipping 2743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2812 return instance_->HasScriptableMethod(name, exception); | 2814 return instance_->HasScriptableMethod(name, exception); |
2813 } | 2815 } |
2814 | 2816 |
2815 pp::Var PDFScriptableObject::Call(const pp::Var& method, | 2817 pp::Var PDFScriptableObject::Call(const pp::Var& method, |
2816 const std::vector<pp::Var>& args, | 2818 const std::vector<pp::Var>& args, |
2817 pp::Var* exception) { | 2819 pp::Var* exception) { |
2818 return instance_->CallScriptableMethod(method, args, exception); | 2820 return instance_->CallScriptableMethod(method, args, exception); |
2819 } | 2821 } |
2820 | 2822 |
2821 } // namespace chrome_pdf | 2823 } // namespace chrome_pdf |
OLD | NEW |