OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/chromeos/wm_overview_fav_icon.h" | 5 #include "chrome/browser/chromeos/wm_overview_fav_icon.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "app/x11_util.h" | 9 #include "app/x11_util.h" |
10 #include "chrome/browser/chromeos/wm_ipc.h" | 10 #include "chrome/browser/chromeos/wm_ipc.h" |
11 #include "chrome/browser/chromeos/wm_overview_snapshot.h" | 11 #include "chrome/browser/chromeos/wm_overview_snapshot.h" |
12 #include "cros/chromeos_wm_ipc_enums.h" | |
13 #include "skia/ext/image_operations.h" | 12 #include "skia/ext/image_operations.h" |
| 13 #include "third_party/cros/chromeos_wm_ipc_enums.h" |
14 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
15 #include "views/controls/image_view.h" | 15 #include "views/controls/image_view.h" |
16 #include "views/controls/label.h" | 16 #include "views/controls/label.h" |
17 #include "views/grid_layout.h" | 17 #include "views/grid_layout.h" |
18 | 18 |
19 using std::vector; | 19 using std::vector; |
20 | 20 |
21 #if !defined(OS_CHROMEOS) | 21 #if !defined(OS_CHROMEOS) |
22 #error This file is only meant to be compiled for ChromeOS | 22 #error This file is only meant to be compiled for ChromeOS |
23 #endif | 23 #endif |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 // Reset the bounds to the size of the image. | 75 // Reset the bounds to the size of the image. |
76 gfx::Rect bounds; | 76 gfx::Rect bounds; |
77 GetBounds(&bounds, false); | 77 GetBounds(&bounds, false); |
78 bounds.set_width(icon.width()); | 78 bounds.set_width(icon.width()); |
79 bounds.set_height(icon.height()); | 79 bounds.set_height(icon.height()); |
80 SetBounds(bounds); | 80 SetBounds(bounds); |
81 } | 81 } |
82 | 82 |
83 } // namespace chromeos | 83 } // namespace chromeos |
OLD | NEW |