Index: pdf/out_of_process_instance.cc |
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc |
index d6ad71adb6724a9ac7ac9a622c22e612de183aff..a5e5e36f9dc13f0cf17ad386d7f8a962427fda38 100644 |
--- a/pdf/out_of_process_instance.cc |
+++ b/pdf/out_of_process_instance.cc |
@@ -140,6 +140,10 @@ const char kJSSelectedText[] = "selectedText"; |
const char kJSSetNamedDestinationsType[] = "setNamedDestinations"; |
const char kJSNamedDestinations[] = "namedDestinations"; |
+// Selecting text in document (Plugin -> Page) |
+const char kJSSetIsSelectingType[] = "setIsSelecting"; |
+const char kJSIsSelecting[] = "isSelecting"; |
+ |
const int kFindResultCooldownMs = 100; |
const double kMinZoom = 0.01; |
@@ -1334,6 +1338,13 @@ bool OutOfProcessInstance::IsPrintPreview() { |
return IsPrintPreviewUrl(url_); |
} |
+void OutOfProcessInstance::IsSelectingChanged(bool is_selecting) { |
+ pp::VarDictionary message; |
+ message.Set(kType, kJSSetIsSelectingType); |
+ message.Set(kJSIsSelecting, pp::Var(is_selecting)); |
+ PostMessage(message); |
+} |
+ |
void OutOfProcessInstance::ProcessPreviewPageInfo(const std::string& url, |
int dst_page_index) { |
if (!IsPrintPreview()) |