🎨 lint fix
This commit is contained in:
parent
0f4341da42
commit
f8d3b363ea
4 changed files with 9 additions and 9 deletions
|
@ -119,7 +119,7 @@ void PdfViewerHandler::Initialize(const base::ListValue* args) {
|
|||
} else {
|
||||
initialize_callback_id_ = callback_id->CreateDeepCopy();
|
||||
}
|
||||
|
||||
|
||||
auto zoom_controller = WebContentsZoomController::FromWebContents(
|
||||
web_ui()->GetWebContents());
|
||||
zoom_controller->SetZoomMode(WebContentsZoomController::ZOOM_MODE_MANUAL);
|
||||
|
@ -211,7 +211,7 @@ void PdfViewerHandler::Reload(const base::ListValue* args) {
|
|||
void PdfViewerHandler::OnZoomLevelChanged(content::WebContents* web_contents,
|
||||
double level, bool is_temporary) {
|
||||
if (web_ui()->GetWebContents() == web_contents) {
|
||||
CallJavascriptFunction("cr.webUIListenerCallback",
|
||||
CallJavascriptFunction("cr.webUIListenerCallback",
|
||||
base::StringValue("onZoomLevelChanged"),
|
||||
base::Value(content::ZoomLevelToZoomFactor(level)));
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ class PdfViewerHandler : public content::WebUIMessageHandler,
|
|||
void SetZoom(const base::ListValue* args);
|
||||
void GetStrings(const base::ListValue* args);
|
||||
void Reload(const base::ListValue* args);
|
||||
void OnZoomLevelChanged(content::WebContents* web_contents, double level,
|
||||
void OnZoomLevelChanged(content::WebContents* web_contents, double level,
|
||||
bool is_temporary);
|
||||
|
||||
std::unique_ptr<base::Value> initialize_callback_id_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue