Index: pdf/out_of_process_instance.cc |
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc |
index 9dcf4d9aa33833643d0b9a219f3e4df1287013d2..ce7159f7ad24f030454bae8e2ebf65852a580791 100644 |
--- a/pdf/out_of_process_instance.cc |
+++ b/pdf/out_of_process_instance.cc |
@@ -78,6 +78,8 @@ const char kJSPageHeight[] = "height"; |
// Document load progress arguments (Plugin -> Page) |
const char kJSLoadProgressType[] = "loadProgress"; |
const char kJSProgressPercentage[] = "progress"; |
+// Bookmarks |
+const char kJSBookmarksType[] = "bookmarks"; |
// Get password arguments (Plugin -> Page) |
const char kJSGetPasswordType[] = "getPassword"; |
// Get password complete arguments (Page -> Plugin) |
@@ -1112,6 +1114,11 @@ void OutOfProcessInstance::DocumentLoadComplete(int page_count) { |
message.Set(pp::Var(kJSProgressPercentage), pp::Var(100)) ; |
PostMessage(message); |
+ pp::VarDictionary bookmarksMessage; |
+ bookmarksMessage.Set(pp::Var(kType), pp::Var(kJSBookmarksType)); |
+ bookmarksMessage.Set(pp::Var(kJSBookmarksType), engine_->GetBookmarks()); |
+ PostMessage(bookmarksMessage); |
+ |
if (!full_) |
return; |