summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-27 03:25:19 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-27 03:25:19 +0000
commit545071a947907e90543c14b48c4a492e5f6fe80c (patch)
tree5d9c2f94ff26b9e3cbb9011b4ef247c2066541f3 /pdf
parentf1176b1ddfe9eba75bad46ce5939a9097ce8df66 (diff)
downloadchromium_src-545071a947907e90543c14b48c4a492e5f6fe80c.zip
chromium_src-545071a947907e90543c14b48c4a492e5f6fe80c.tar.gz
chromium_src-545071a947907e90543c14b48c4a492e5f6fe80c.tar.bz2
PDF: Cleanup the declarations for a bunch of const char* variables.
Review URL: https://codereview.chromium.org/354513007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280228 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'pdf')
-rw-r--r--pdf/instance.cc58
-rw-r--r--pdf/out_of_process_instance.cc100
2 files changed, 79 insertions, 79 deletions
diff --git a/pdf/instance.cc b/pdf/instance.cc
index a17db57..b0b6680 100644
--- a/pdf/instance.cc
+++ b/pdf/instance.cc
@@ -70,36 +70,36 @@ const uint32 kAutoScrollTimeoutMs = 50;
const double kAutoScrollFactor = 0.2;
// Javascript methods.
-const char* kJSAccessibility = "accessibility";
-const char* kJSDocumentLoadComplete = "documentLoadComplete";
-const char* kJSGetHeight = "getHeight";
-const char* kJSGetHorizontalScrollbarThickness =
+const char kJSAccessibility[] = "accessibility";
+const char kJSDocumentLoadComplete[] = "documentLoadComplete";
+const char kJSGetHeight[] = "getHeight";
+const char kJSGetHorizontalScrollbarThickness[] =
"getHorizontalScrollbarThickness";
-const char* kJSGetPageLocationNormalized = "getPageLocationNormalized";
-const char* kJSGetVerticalScrollbarThickness = "getVerticalScrollbarThickness";
-const char* kJSGetWidth = "getWidth";
-const char* kJSGetZoomLevel = "getZoomLevel";
-const char* kJSGoToPage = "goToPage";
-const char* kJSGrayscale = "grayscale";
-const char* kJSLoadPreviewPage = "loadPreviewPage";
-const char* kJSOnLoad = "onload";
-const char* kJSOnPluginSizeChanged = "onPluginSizeChanged";
-const char* kJSOnScroll = "onScroll";
-const char* kJSPageXOffset = "pageXOffset";
-const char* kJSPageYOffset = "pageYOffset";
-const char* kJSPrintPreviewPageCount = "printPreviewPageCount";
-const char* kJSReload = "reload";
-const char* kJSRemovePrintButton = "removePrintButton";
-const char* kJSResetPrintPreviewUrl = "resetPrintPreviewUrl";
-const char* kJSSendKeyEvent = "sendKeyEvent";
-const char* kJSSetPageNumbers = "setPageNumbers";
-const char* kJSSetPageXOffset = "setPageXOffset";
-const char* kJSSetPageYOffset = "setPageYOffset";
-const char* kJSSetZoomLevel = "setZoomLevel";
-const char* kJSZoomFitToHeight = "fitToHeight";
-const char* kJSZoomFitToWidth = "fitToWidth";
-const char* kJSZoomIn = "zoomIn";
-const char* kJSZoomOut = "zoomOut";
+const char kJSGetPageLocationNormalized[] = "getPageLocationNormalized";
+const char kJSGetVerticalScrollbarThickness[] = "getVerticalScrollbarThickness";
+const char kJSGetWidth[] = "getWidth";
+const char kJSGetZoomLevel[] = "getZoomLevel";
+const char kJSGoToPage[] = "goToPage";
+const char kJSGrayscale[] = "grayscale";
+const char kJSLoadPreviewPage[] = "loadPreviewPage";
+const char kJSOnLoad[] = "onload";
+const char kJSOnPluginSizeChanged[] = "onPluginSizeChanged";
+const char kJSOnScroll[] = "onScroll";
+const char kJSPageXOffset[] = "pageXOffset";
+const char kJSPageYOffset[] = "pageYOffset";
+const char kJSPrintPreviewPageCount[] = "printPreviewPageCount";
+const char kJSReload[] = "reload";
+const char kJSRemovePrintButton[] = "removePrintButton";
+const char kJSResetPrintPreviewUrl[] = "resetPrintPreviewUrl";
+const char kJSSendKeyEvent[] = "sendKeyEvent";
+const char kJSSetPageNumbers[] = "setPageNumbers";
+const char kJSSetPageXOffset[] = "setPageXOffset";
+const char kJSSetPageYOffset[] = "setPageYOffset";
+const char kJSSetZoomLevel[] = "setZoomLevel";
+const char kJSZoomFitToHeight[] = "fitToHeight";
+const char kJSZoomFitToWidth[] = "fitToWidth";
+const char kJSZoomIn[] = "zoomIn";
+const char kJSZoomOut[] = "zoomOut";
// URL reference parameters.
// For more possible parameters, see RFC 3778 and the "PDF Open Parameters"
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc
index 4d1bb8f..a08f8b0 100644
--- a/pdf/out_of_process_instance.cc
+++ b/pdf/out_of_process_instance.cc
@@ -65,73 +65,73 @@ const char kAccessibleLoaded[] = "loaded";
const char kAccessibleCopyable[] = "copyable";
// Constants used in handling postMessage() messages.
-const char* kType = "type";
+const char kType[] = "type";
// Viewport message arguments. (Page -> Plugin).
-const char* kJSViewportType = "viewport";
-const char* kJSXOffset = "xOffset";
-const char* kJSYOffset = "yOffset";
-const char* kJSZoom = "zoom";
+const char kJSViewportType[] = "viewport";
+const char kJSXOffset[] = "xOffset";
+const char kJSYOffset[] = "yOffset";
+const char kJSZoom[] = "zoom";
// Stop scrolling message (Page -> Plugin)
-const char* kJSStopScrollingType = "stopScrolling";
+const char kJSStopScrollingType[] = "stopScrolling";
// Document dimension arguments (Plugin -> Page).
-const char* kJSDocumentDimensionsType = "documentDimensions";
-const char* kJSDocumentWidth = "width";
-const char* kJSDocumentHeight = "height";
-const char* kJSPageDimensions = "pageDimensions";
-const char* kJSPageX = "x";
-const char* kJSPageY = "y";
-const char* kJSPageWidth = "width";
-const char* kJSPageHeight = "height";
+const char kJSDocumentDimensionsType[] = "documentDimensions";
+const char kJSDocumentWidth[] = "width";
+const char kJSDocumentHeight[] = "height";
+const char kJSPageDimensions[] = "pageDimensions";
+const char kJSPageX[] = "x";
+const char kJSPageY[] = "y";
+const char kJSPageWidth[] = "width";
+const char kJSPageHeight[] = "height";
// Document load progress arguments (Plugin -> Page)
-const char* kJSLoadProgressType = "loadProgress";
-const char* kJSProgressPercentage = "progress";
+const char kJSLoadProgressType[] = "loadProgress";
+const char kJSProgressPercentage[] = "progress";
// Get password arguments (Plugin -> Page)
-const char* kJSGetPasswordType = "getPassword";
+const char kJSGetPasswordType[] = "getPassword";
// Get password complete arguments (Page -> Plugin)
-const char* kJSGetPasswordCompleteType = "getPasswordComplete";
-const char* kJSPassword = "password";
+const char kJSGetPasswordCompleteType[] = "getPasswordComplete";
+const char kJSPassword[] = "password";
// Print (Page -> Plugin)
-const char* kJSPrintType = "print";
+const char kJSPrintType[] = "print";
// Go to page (Plugin -> Page)
-const char* kJSGoToPageType = "goToPage";
-const char* kJSPageNumber = "page";
+const char kJSGoToPageType[] = "goToPage";
+const char kJSPageNumber[] = "page";
// Reset print preview mode (Page -> Plugin)
-const char* kJSResetPrintPreviewModeType = "resetPrintPreviewMode";
-const char* kJSPrintPreviewUrl = "url";
-const char* kJSPrintPreviewGrayscale = "grayscale";
-const char* kJSPrintPreviewPageCount = "pageCount";
+const char kJSResetPrintPreviewModeType[] = "resetPrintPreviewMode";
+const char kJSPrintPreviewUrl[] = "url";
+const char kJSPrintPreviewGrayscale[] = "grayscale";
+const char kJSPrintPreviewPageCount[] = "pageCount";
// Load preview page (Page -> Plugin)
-const char* kJSLoadPreviewPageType = "loadPreviewPage";
-const char* kJSPreviewPageUrl = "url";
-const char* kJSPreviewPageIndex = "index";
+const char kJSLoadPreviewPageType[] = "loadPreviewPage";
+const char kJSPreviewPageUrl[] = "url";
+const char kJSPreviewPageIndex[] = "index";
// Set scroll position (Plugin -> Page)
-const char* kJSSetScrollPositionType = "setScrollPosition";
-const char* kJSPositionX = "x";
-const char* kJSPositionY = "y";
+const char kJSSetScrollPositionType[] = "setScrollPosition";
+const char kJSPositionX[] = "x";
+const char kJSPositionY[] = "y";
// Set translated strings (Plugin -> Page)
-const char* kJSSetTranslatedStringsType = "setTranslatedStrings";
-const char* kJSGetPasswordString = "getPasswordString";
-const char* kJSLoadingString = "loadingString";
-const char* kJSLoadFailedString = "loadFailedString";
+const char kJSSetTranslatedStringsType[] = "setTranslatedStrings";
+const char kJSGetPasswordString[] = "getPasswordString";
+const char kJSLoadingString[] = "loadingString";
+const char kJSLoadFailedString[] = "loadFailedString";
// Request accessibility JSON data (Page -> Plugin)
-const char* kJSGetAccessibilityJSONType = "getAccessibilityJSON";
-const char* kJSAccessibilityPageNumber = "page";
+const char kJSGetAccessibilityJSONType[] = "getAccessibilityJSON";
+const char kJSAccessibilityPageNumber[] = "page";
// Reply with accessibility JSON data (Plugin -> Page)
-const char* kJSGetAccessibilityJSONReplyType = "getAccessibilityJSONReply";
-const char* kJSAccessibilityJSON = "json";
+const char kJSGetAccessibilityJSONReplyType[] = "getAccessibilityJSONReply";
+const char kJSAccessibilityJSON[] = "json";
// Cancel the stream URL request (Plugin -> Page)
-const char* kJSCancelStreamUrlType = "cancelStreamUrl";
+const char kJSCancelStreamUrlType[] = "cancelStreamUrl";
// Navigate to the given URL (Plugin -> Page)
-const char* kJSNavigateType = "navigate";
-const char* kJSNavigateUrl = "url";
-const char* kJSNavigateNewTab = "newTab";
+const char kJSNavigateType[] = "navigate";
+const char kJSNavigateUrl[] = "url";
+const char kJSNavigateNewTab[] = "newTab";
// Open the email editor with the given parameters (Plugin -> Page)
-const char* kJSEmailType = "email";
-const char* kJSEmailTo = "to";
-const char* kJSEmailCc = "cc";
-const char* kJSEmailBcc = "bcc";
-const char* kJSEmailSubject = "subject";
-const char* kJSEmailBody = "body";
+const char kJSEmailType[] = "email";
+const char kJSEmailTo[] = "to";
+const char kJSEmailCc[] = "cc";
+const char kJSEmailBcc[] = "bcc";
+const char kJSEmailSubject[] = "subject";
+const char kJSEmailBody[] = "body";
const int kFindResultCooldownMs = 100;