Translate menu template directly in C++

This commit is contained in:
Cheng Zhao 2015-11-02 23:28:45 +08:00
parent 56e6b28370
commit 9236adfbf5
5 changed files with 100 additions and 98 deletions

View file

@ -13,7 +13,6 @@
#include "atom/browser/api/trackable_object.h"
#include "atom/browser/common_web_contents_delegate.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/common/context_menu_params.h"
#include "content/public/common/favicon_url.h"
#include "native_mate/handle.h"
#include "ui/gfx/image/image.h"
@ -93,8 +92,6 @@ class WebContents : public mate::TrackableObject<WebContents>,
void SetAudioMuted(bool muted);
bool IsAudioMuted();
void Print(mate::Arguments* args);
void ExecuteContextMenuCommand(int action);
void NotifyContextMenuClosed();
// Print current page as PDF.
void PrintToPDF(const base::DictionaryValue& setting,
@ -259,9 +256,6 @@ class WebContents : public mate::TrackableObject<WebContents>,
// embedders' zoom level change.
void OnZoomLevelChanged(double level);
// Recent unhandled context menu context.
content::CustomContextMenuContext context_menu_context_;
v8::Global<v8::Value> session_;
v8::Global<v8::Value> devtools_web_contents_;