Index: pdf/pdfium/pdfium_engine.cc |
diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc |
index 2990f40b9a2fd9242f9b42601a39a4d59352bbad..90cd0b58c237bc5a6f8c9356325716eb5d67da3c 100644 |
--- a/pdf/pdfium/pdfium_engine.cc |
+++ b/pdf/pdfium/pdfium_engine.cc |
@@ -1732,7 +1732,7 @@ bool PDFiumEngine::OnMouseDown(const pp::MouseInputEvent& event) { |
} |
void PDFiumEngine::OnSingleClick(int page_index, int char_index) { |
- selecting_ = true; |
+ SetSelecting(true); |
selection_.push_back(PDFiumRange(pages_[page_index], char_index, 0)); |
} |
@@ -1795,7 +1795,7 @@ bool PDFiumEngine::OnMouseUp(const pp::MouseInputEvent& event) { |
if (!selecting_) |
return false; |
- selecting_ = false; |
+ SetSelecting(false); |
return true; |
} |
@@ -3479,6 +3479,13 @@ void PDFiumEngine::RotateInternal() { |
} |
} |
+void PDFiumEngine::SetSelecting(bool selecting) { |
+ bool was_selecting = selecting_; |
+ selecting_ = selecting; |
+ if (selecting_ != was_selecting) |
+ client_->IsSelectingChanged(selecting); |
+} |
+ |
void PDFiumEngine::Form_Invalidate(FPDF_FORMFILLINFO* param, |
FPDF_PAGE page, |
double left, |