| OLD | NEW | 
|     1 // Copyright 2012 The Chromium Authors. All rights reserved. |     1 // Copyright 2012 The Chromium Authors. All rights reserved. | 
|     2 // Use of this source code is governed by a BSD-style license that can be |     2 // Use of this source code is governed by a BSD-style license that can be | 
|     3 // found in the LICENSE file. |     3 // found in the LICENSE file. | 
|     4  |     4  | 
|     5 #include "chrome/renderer/searchbox/searchbox_extension.h" |     5 #include "chrome/renderer/searchbox/searchbox_extension.h" | 
|     6  |     6  | 
|     7 #include <stddef.h> |     7 #include <stddef.h> | 
|     8 #include <stdint.h> |     8 #include <stdint.h> | 
|     9  |     9  | 
|    10 #include "base/command_line.h" |    10 #include "base/command_line.h" | 
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   403       v8::Isolate*, |   403       v8::Isolate*, | 
|   404       v8::Local<v8::String> name) override; |   404       v8::Local<v8::String> name) override; | 
|   405  |   405  | 
|   406   // Helper function to find the RenderView. May return NULL. |   406   // Helper function to find the RenderView. May return NULL. | 
|   407   static content::RenderView* GetRenderView(); |   407   static content::RenderView* GetRenderView(); | 
|   408  |   408  | 
|   409   // Sends a Chrome identity check to the browser. |   409   // Sends a Chrome identity check to the browser. | 
|   410   static void CheckIsUserSignedInToChromeAs( |   410   static void CheckIsUserSignedInToChromeAs( | 
|   411       const v8::FunctionCallbackInfo<v8::Value>& args); |   411       const v8::FunctionCallbackInfo<v8::Value>& args); | 
|   412  |   412  | 
|   413   // Checks whether the user sync his history. |   413   // Checks whether the user syncs their history. | 
|   414   static void CheckIsUserSyncingHistory( |   414   static void CheckIsUserSyncingHistory( | 
|   415       const v8::FunctionCallbackInfo<v8::Value>& args); |   415       const v8::FunctionCallbackInfo<v8::Value>& args); | 
|   416  |   416  | 
|   417   // Deletes a Most Visited item. |   417   // Deletes a Most Visited item. | 
|   418   static void DeleteMostVisitedItem( |   418   static void DeleteMostVisitedItem( | 
|   419       const v8::FunctionCallbackInfo<v8::Value>& args); |   419       const v8::FunctionCallbackInfo<v8::Value>& args); | 
|   420  |   420  | 
|   421   // Gets Most Visited Items. |   421   // Gets Most Visited Items. | 
|   422   static void GetMostVisitedItems( |   422   static void GetMostVisitedItems( | 
|   423       const v8::FunctionCallbackInfo<v8::Value>& args); |   423       const v8::FunctionCallbackInfo<v8::Value>& args); | 
| (...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1114     ThrowInvalidParameters(args); |  1114     ThrowInvalidParameters(args); | 
|  1115     return; |  1115     return; | 
|  1116   } |  1116   } | 
|  1117  |  1117  | 
|  1118   DVLOG(1) << render_view << " UndoMostVisitedDeletion"; |  1118   DVLOG(1) << render_view << " UndoMostVisitedDeletion"; | 
|  1119   SearchBox::Get(render_view) |  1119   SearchBox::Get(render_view) | 
|  1120       ->UndoMostVisitedDeletion(args[0]->ToInteger()->Value()); |  1120       ->UndoMostVisitedDeletion(args[0]->ToInteger()->Value()); | 
|  1121 } |  1121 } | 
|  1122  |  1122  | 
|  1123 }  // namespace extensions_v8 |  1123 }  // namespace extensions_v8 | 
| OLD | NEW |