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

Unified Diff: ash/launcher/launcher_tooltip_manager.cc

Issue 10827145: Convert Aura to use ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « ash/launcher/launcher_tooltip_manager.h ('k') | ash/launcher/launcher_tooltip_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_tooltip_manager.cc
===================================================================
--- ash/launcher/launcher_tooltip_manager.cc (revision 150582)
+++ ash/launcher/launcher_tooltip_manager.cc (working copy)
@@ -12,9 +12,9 @@
#include "base/message_loop.h"
#include "base/time.h"
#include "base/timer.h"
-#include "ui/aura/event.h"
#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
+#include "ui/base/event.h"
#include "ui/base/events.h"
#include "ui/gfx/insets.h"
#include "ui/views/bubble/bubble_delegate.h"
@@ -290,13 +290,13 @@
}
bool LauncherTooltipManager::PreHandleKeyEvent(aura::Window* target,
- aura::KeyEvent* event) {
+ ui::KeyEvent* event) {
// Not handled.
return false;
}
bool LauncherTooltipManager::PreHandleMouseEvent(aura::Window* target,
- aura::MouseEvent* event) {
+ ui::MouseEvent* event) {
DCHECK(target);
DCHECK(event);
if (!widget_ || !widget_->IsVisible())
@@ -311,12 +311,12 @@
}
gfx::Point location_in_launcher_view = event->location();
- aura::Window::ConvertPointToWindow(
+ aura::Window::ConvertPointToTarget(
target, launcher_view_->GetWidget()->GetNativeWindow(),
&location_in_launcher_view);
gfx::Point location_on_screen = event->location();
- aura::Window::ConvertPointToWindow(
+ aura::Window::ConvertPointToTarget(
target, target->GetRootWindow(), &location_on_screen);
gfx::Rect bubble_rect = widget_->GetWindowBoundsInScreen();
@@ -331,14 +331,14 @@
}
ui::TouchStatus LauncherTooltipManager::PreHandleTouchEvent(
- aura::Window* target, aura::TouchEvent* event) {
+ aura::Window* target, ui::TouchEventImpl* event) {
if (widget_ && widget_->IsVisible() && widget_->GetNativeWindow() != target)
Close();
return ui::TOUCH_STATUS_UNKNOWN;
}
ui::GestureStatus LauncherTooltipManager::PreHandleGestureEvent(
- aura::Window* target, aura::GestureEvent* event) {
+ aura::Window* target, ui::GestureEventImpl* event) {
if (widget_ && widget_->IsVisible()) {
// Because this mouse event may arrive to |view_|, here we just schedule
// the closing event rather than directly calling Close().
« no previous file with comments | « ash/launcher/launcher_tooltip_manager.h ('k') | ash/launcher/launcher_tooltip_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698