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

Unified Diff: ui/wm/core/easy_resize_window_targeter.cc

Issue 1119423003: Refactors away method implementations in ui::EventTargeter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactors ui::EventTargeter (rebased) Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/wm/core/easy_resize_window_targeter.h ('k') | ui/wm/core/masked_window_targeter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/easy_resize_window_targeter.cc
diff --git a/ui/wm/core/easy_resize_window_targeter.cc b/ui/wm/core/easy_resize_window_targeter.cc
index 445028cbf921a1d5d2a742ff4f553439ab26cd34..c286bc2284416856ea5d592d7617d63fb0166aea 100644
--- a/ui/wm/core/easy_resize_window_targeter.cc
+++ b/ui/wm/core/easy_resize_window_targeter.cc
@@ -5,6 +5,7 @@
#include "ui/wm/core/easy_resize_window_targeter.h"
#include "ui/aura/window.h"
+#include "ui/events/event.h"
#include "ui/gfx/geometry/insets_f.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/wm/public/transient_window_client.h"
@@ -24,9 +25,8 @@ EasyResizeWindowTargeter::~EasyResizeWindowTargeter() {
}
bool EasyResizeWindowTargeter::EventLocationInsideBounds(
- ui::EventTarget* target,
+ aura::Window* window,
const ui::LocatedEvent& event) const {
- aura::Window* window = static_cast<aura::Window*>(target);
if (ShouldUseExtendedBounds(window)) {
// Note that |event|'s location is in |window|'s parent's coordinate system,
// so convert it to |window|'s coordinate system first.
@@ -48,7 +48,7 @@ bool EasyResizeWindowTargeter::EventLocationInsideBounds(
bool EasyResizeWindowTargeter::ShouldUseExtendedBounds(
const aura::Window* window) const {
// Use the extended bounds only for immediate child windows of |container_|.
- // Use the default targetter otherwise.
+ // Use the default targeter otherwise.
if (window->parent() != container_)
return false;
« no previous file with comments | « ui/wm/core/easy_resize_window_targeter.h ('k') | ui/wm/core/masked_window_targeter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698