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

Side by Side Diff: ash/system/tray_tracing.cc

Issue 2881183003: Add views::View::set_preferred_size, use it in a few places. (Closed)
Patch Set: auto* Created 3 years, 7 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 | « ash/system/tray/tray_popup_utils.cc ('k') | ash/system/update/tray_update.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "ash/system/tray_tracing.h" 5 #include "ash/system/tray_tracing.h"
6 6
7 #include "ash/metrics/user_metrics_action.h" 7 #include "ash/metrics/user_metrics_action.h"
8 #include "ash/resources/vector_icons/vector_icons.h" 8 #include "ash/resources/vector_icons/vector_icons.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/shell_port.h" 10 #include "ash/shell_port.h"
11 #include "ash/strings/grit/ash_strings.h" 11 #include "ash/strings/grit/ash_strings.h"
12 #include "ash/system/tray/actionable_view.h" 12 #include "ash/system/tray/actionable_view.h"
13 #include "ash/system/tray/fixed_sized_image_view.h"
14 #include "ash/system/tray/system_tray.h" 13 #include "ash/system/tray/system_tray.h"
15 #include "ash/system/tray/system_tray_controller.h" 14 #include "ash/system/tray/system_tray_controller.h"
16 #include "ash/system/tray/system_tray_notifier.h" 15 #include "ash/system/tray/system_tray_notifier.h"
17 #include "ash/system/tray/tray_constants.h" 16 #include "ash/system/tray/tray_constants.h"
18 #include "ash/system/tray/tray_popup_item_style.h" 17 #include "ash/system/tray/tray_popup_item_style.h"
19 #include "ash/system/tray/tray_popup_utils.h" 18 #include "ash/system/tray/tray_popup_utils.h"
20 #include "ash/system/tray/tri_view.h" 19 #include "ash/system/tray/tri_view.h"
21 #include "ui/base/l10n/l10n_util.h" 20 #include "ui/base/l10n/l10n_util.h"
22 #include "ui/gfx/image/image.h" 21 #include "ui/gfx/image/image.h"
23 #include "ui/gfx/paint_vector_icon.h" 22 #include "ui/gfx/paint_vector_icon.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 default_ = NULL; 105 default_ = NULL;
107 } 106 }
108 107
109 void TrayTracing::DestroyDetailedView() {} 108 void TrayTracing::DestroyDetailedView() {}
110 109
111 void TrayTracing::OnTracingModeChanged(bool value) { 110 void TrayTracing::OnTracingModeChanged(bool value) {
112 SetTrayIconVisible(value); 111 SetTrayIconVisible(value);
113 } 112 }
114 113
115 } // namespace ash 114 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tray/tray_popup_utils.cc ('k') | ash/system/update/tray_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698