Index: pdf/out_of_process_instance.cc |
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc |
index 169a4403498a21b2a2eb9dac16f5c88ff5e022f8..74544d90e2724c529408ae4f21d217e116c0e643 100644 |
--- a/pdf/out_of_process_instance.cc |
+++ b/pdf/out_of_process_instance.cc |
@@ -144,6 +144,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; |
@@ -1351,6 +1355,13 @@ uint32 OutOfProcessInstance::GetBackgroundColor() { |
return background_color_; |
} |
+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()) |