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

Side by Side Diff: ash/display/cursor_window_controller.cc

Issue 351683002: Adds link disambiguation popup support to Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: first patch ready for review Created 6 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ash/display/cursor_window_controller.h" 5 #include "ash/display/cursor_window_controller.h"
6 6
7 #include "ash/display/display_controller.h" 7 #include "ash/display/display_controller.h"
8 #include "ash/display/mirror_window_controller.h" 8 #include "ash/display/mirror_window_controller.h"
9 #include "ash/root_window_controller.h" 9 #include "ash/root_window_controller.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE { 50 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {
51 canvas->DrawImageInt(cursor_image_, 0, 0); 51 canvas->DrawImageInt(cursor_image_, 0, 0);
52 } 52 }
53 virtual void OnDeviceScaleFactorChanged( 53 virtual void OnDeviceScaleFactorChanged(
54 float device_scale_factor) OVERRIDE {} 54 float device_scale_factor) OVERRIDE {}
55 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE {} 55 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE {}
56 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE {} 56 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE {}
57 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE {} 57 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE {}
58 virtual bool HasHitTestMask() const OVERRIDE { return false; } 58 virtual bool HasHitTestMask() const OVERRIDE { return false; }
59 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE {} 59 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE {}
60 virtual void OnLinkDisambiguationPopupRequested(
61 const gfx::Rect& target_rect, const SkBitmap& zommed_bitmap) OVERRIDE {}
60 62
61 // Sets cursor compositing mode on/off. 63 // Sets cursor compositing mode on/off.
62 void SetCursorCompositingEnabled(bool enabled) { 64 void SetCursorCompositingEnabled(bool enabled) {
63 is_cursor_compositing_enabled_ = enabled; 65 is_cursor_compositing_enabled_ = enabled;
64 } 66 }
65 67
66 // Sets the cursor image for the |display|'s scale factor. 68 // Sets the cursor image for the |display|'s scale factor.
67 void SetCursorImage(const gfx::ImageSkia& image, 69 void SetCursorImage(const gfx::ImageSkia& image,
68 const gfx::Display& display) { 70 const gfx::Display& display) {
69 float scale_factor = display.device_scale_factor(); 71 float scale_factor = display.device_scale_factor();
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 delegate_->SetCursorImage(rotated, display_); 260 delegate_->SetCursorImage(rotated, display_);
259 if (cursor_window_) { 261 if (cursor_window_) {
260 cursor_window_->SetBounds(gfx::Rect(delegate_->size())); 262 cursor_window_->SetBounds(gfx::Rect(delegate_->size()));
261 cursor_window_->SchedulePaintInRect( 263 cursor_window_->SchedulePaintInRect(
262 gfx::Rect(cursor_window_->bounds().size())); 264 gfx::Rect(cursor_window_->bounds().size()));
263 UpdateLocation(); 265 UpdateLocation();
264 } 266 }
265 } 267 }
266 268
267 } // namespace ash 269 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/drag_drop/drag_drop_controller.cc » ('j') | content/browser/renderer_host/render_widget_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698