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_snapshot.h" | 5 #include "chrome/browser/chromeos/wm_overview_snapshot.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/browser.h" | |
11 #include "chrome/browser/browser_window.h" | 10 #include "chrome/browser/browser_window.h" |
12 #include "chrome/browser/chromeos/wm_ipc.h" | 11 #include "chrome/browser/chromeos/wm_ipc.h" |
| 12 #include "chrome/browser/ui/browser.h" |
13 #include "views/controls/image_view.h" | 13 #include "views/controls/image_view.h" |
14 #include "views/controls/label.h" | 14 #include "views/controls/label.h" |
15 #include "views/grid_layout.h" | 15 #include "views/grid_layout.h" |
16 | 16 |
17 using std::vector; | 17 using std::vector; |
18 | 18 |
19 #if !defined(OS_CHROMEOS) | 19 #if !defined(OS_CHROMEOS) |
20 #error This file is only meant to be compiled for ChromeOS | 20 #error This file is only meant to be compiled for ChromeOS |
21 #endif | 21 #endif |
22 | 22 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 gfx::Rect bounds; | 62 gfx::Rect bounds; |
63 GetBounds(&bounds, false); | 63 GetBounds(&bounds, false); |
64 bounds.set_width(image.width()); | 64 bounds.set_width(image.width()); |
65 bounds.set_height(image.height()); | 65 bounds.set_height(image.height()); |
66 SetBounds(bounds); | 66 SetBounds(bounds); |
67 | 67 |
68 configured_snapshot_ = true; | 68 configured_snapshot_ = true; |
69 } | 69 } |
70 | 70 |
71 } // namespace chromeos | 71 } // namespace chromeos |
OLD | NEW |