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

Unified Diff: ash/wm/system_gesture_event_filter.cc

Issue 10540123: Rename gfx::Screen::GetMonitorXXXX to gfx::Screen::GetDisplayXXX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « ash/wm/shelf_layout_manager_unittest.cc ('k') | ash/wm/system_gesture_event_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/system_gesture_event_filter.cc
diff --git a/ash/wm/system_gesture_event_filter.cc b/ash/wm/system_gesture_event_filter.cc
index ecde085c0fff3ceb8e26953e262596acc5c7c3d4..8e12bb8787eb2f9fad2e131c9aee3ff0f3bf0711 100644
--- a/ash/wm/system_gesture_event_filter.cc
+++ b/ash/wm/system_gesture_event_filter.cc
@@ -25,11 +25,11 @@
#include "third_party/skia/include/core/SkRect.h"
#include "ui/aura/event.h"
#include "ui/aura/root_window.h"
-#include "ui/compositor/scoped_layer_animation_settings.h"
#include "ui/base/animation/animation.h"
#include "ui/base/animation/animation_delegate.h"
#include "ui/base/animation/linear_animation.h"
#include "ui/base/gestures/gesture_configuration.h"
+#include "ui/compositor/scoped_layer_animation_settings.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/point.h"
#include "ui/gfx/rect.h"
@@ -477,7 +477,7 @@ ui::GestureStatus SystemGestureEventFilter::PreHandleGestureEvent(
switch (event->type()) {
case ui::ET_GESTURE_SCROLL_BEGIN: {
gfx::Rect screen =
- gfx::Screen::GetMonitorNearestWindow(target).bounds();
+ gfx::Screen::GetDisplayNearestWindow(target).bounds();
int overlap_area = screen.width() * overlap_percent_ / 100;
orientation_ = SCROLL_ORIENTATION_UNSET;
@@ -578,7 +578,7 @@ void SystemGestureEventFilter::ClearGestureHandlerForWindow(
bool SystemGestureEventFilter::HandleDeviceControl(aura::Window* target,
aura::GestureEvent* event) {
- gfx::Rect screen = gfx::Screen::GetMonitorNearestWindow(target).bounds();
+ gfx::Rect screen = gfx::Screen::GetDisplayNearestWindow(target).bounds();
double percent = 100.0 * (event->y() - screen.y()) / screen.height();
if (percent > 100.0)
percent = 100.0;
« no previous file with comments | « ash/wm/shelf_layout_manager_unittest.cc ('k') | ash/wm/system_gesture_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698