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

Side by Side Diff: ui/base/cursor/cursors_aura.cc

Issue 823703003: Cleanup: Update the path to insets and point headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: point.h Created 5 years, 12 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 | « ui/base/cursor/cursor_util.cc ('k') | ui/base/cursor/image_cursors.cc » ('j') | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "ui/base/cursor/cursors_aura.h" 5 #include "ui/base/cursor/cursors_aura.h"
6 6
7 #include "third_party/skia/include/core/SkBitmap.h" 7 #include "third_party/skia/include/core/SkBitmap.h"
8 #include "ui/base/resource/resource_bundle.h" 8 #include "ui/base/resource/resource_bundle.h"
9 #include "ui/gfx/geometry/point.h"
9 #include "ui/gfx/image/image_skia.h" 10 #include "ui/gfx/image/image_skia.h"
10 #include "ui/gfx/point.h"
11 #include "ui/resources/grit/ui_resources.h" 11 #include "ui/resources/grit/ui_resources.h"
12 12
13 namespace ui { 13 namespace ui {
14 namespace { 14 namespace {
15 15
16 struct HotPoint { 16 struct HotPoint {
17 int x; 17 int x;
18 int y; 18 int y;
19 }; 19 };
20 20
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 const SkBitmap* cursor_bitmap = ResourceBundle::GetSharedInstance(). 237 const SkBitmap* cursor_bitmap = ResourceBundle::GetSharedInstance().
238 GetImageSkiaNamed(resource_id)->bitmap(); 238 GetImageSkiaNamed(resource_id)->bitmap();
239 if (!cursor_bitmap) 239 if (!cursor_bitmap)
240 return false; 240 return false;
241 *bitmap = *cursor_bitmap; 241 *bitmap = *cursor_bitmap;
242 return true; 242 return true;
243 } 243 }
244 244
245 } // namespace ui 245 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/cursor/cursor_util.cc ('k') | ui/base/cursor/image_cursors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698