Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(473)

Side by Side Diff: content/renderer/render_widget.cc

Issue 2751763002: Make USE_EXTERNAL_POPUP_MENU local to content. (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "content/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 screen_info_ = emulator->original_screen_info(); 570 screen_info_ = emulator->original_screen_info();
571 device_scale_factor_ = screen_info_.device_scale_factor; 571 device_scale_factor_ = screen_info_.device_scale_factor;
572 } 572 }
573 573
574 gfx::Rect RenderWidget::AdjustValidationMessageAnchor(const gfx::Rect& anchor) { 574 gfx::Rect RenderWidget::AdjustValidationMessageAnchor(const gfx::Rect& anchor) {
575 if (screen_metrics_emulator_) 575 if (screen_metrics_emulator_)
576 return screen_metrics_emulator_->AdjustValidationMessageAnchor(anchor); 576 return screen_metrics_emulator_->AdjustValidationMessageAnchor(anchor);
577 return anchor; 577 return anchor;
578 } 578 }
579 579
580 #if defined(USE_EXTERNAL_POPUP_MENU) 580 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU)
581 void RenderWidget::SetExternalPopupOriginAdjustmentsForEmulation( 581 void RenderWidget::SetExternalPopupOriginAdjustmentsForEmulation(
582 ExternalPopupMenu* popup, 582 ExternalPopupMenu* popup,
583 RenderWidgetScreenMetricsEmulator* emulator) { 583 RenderWidgetScreenMetricsEmulator* emulator) {
584 popup->SetOriginScaleAndOffsetForEmulation( 584 popup->SetOriginScaleAndOffsetForEmulation(
585 emulator->scale(), emulator->offset()); 585 emulator->scale(), emulator->offset());
586 } 586 }
587 #endif 587 #endif
588 588
589 void RenderWidget::OnShowHostContextMenu(ContextMenuParams* params) { 589 void RenderWidget::OnShowHostContextMenu(ContextMenuParams* params) {
590 if (screen_metrics_emulator_) 590 if (screen_metrics_emulator_)
(...skipping 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after
2324 // browser side (https://crbug.com/669219). 2324 // browser side (https://crbug.com/669219).
2325 // If there is no WebFrameWidget, then there will be no 2325 // If there is no WebFrameWidget, then there will be no
2326 // InputMethodControllers for a WebLocalFrame. 2326 // InputMethodControllers for a WebLocalFrame.
2327 return nullptr; 2327 return nullptr;
2328 } 2328 }
2329 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) 2329 return static_cast<blink::WebFrameWidget*>(GetWebWidget())
2330 ->getActiveWebInputMethodController(); 2330 ->getActiveWebInputMethodController();
2331 } 2331 }
2332 2332
2333 } // namespace content 2333 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698