Chromium Code Reviews| Index: pdf/out_of_process_instance.cc |
| diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc |
| index 4e76e32736a641d938c007ad6cff20aeb2d81332..9e748d2061f65dbcd720ba51994c2f61910a750a 100644 |
| --- a/pdf/out_of_process_instance.cc |
| +++ b/pdf/out_of_process_instance.cc |
| @@ -73,6 +73,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) |
| @@ -1111,6 +1113,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()); |
|
raymes
2015/01/16 02:44:23
We should have a separate constant here as the key
Alexandre Carlton
2015/01/16 03:01:40
Done.
|
| + PostMessage(bookmarksMessage); |
| + |
| if (!full_) |
| return; |