OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/system_tray.h" | 5 #include "ash/system/tray/system_tray.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/shell/panel_window.h" | 8 #include "ash/shell/panel_window.h" |
9 #include "ash/shell_window_ids.h" | 9 #include "ash/shell_window_ids.h" |
10 #include "ash/system/tray/system_tray_delegate.h" | 10 #include "ash/system/tray/system_tray_delegate.h" |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 bool can_activate_; | 273 bool can_activate_; |
274 | 274 |
275 int autoclose_delay_; | 275 int autoclose_delay_; |
276 base::OneShotTimer<SystemTrayBubble> autoclose_; | 276 base::OneShotTimer<SystemTrayBubble> autoclose_; |
277 | 277 |
278 DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble); | 278 DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble); |
279 }; | 279 }; |
280 | 280 |
281 } // namespace internal | 281 } // namespace internal |
282 | 282 |
283 NetworkIconInfo::NetworkIconInfo() { | |
284 } | |
285 | |
286 SystemTray::SystemTray() | 283 SystemTray::SystemTray() |
287 : items_(), | 284 : items_(), |
288 bubble_(NULL), | 285 bubble_(NULL), |
289 popup_(NULL) { | 286 popup_(NULL) { |
290 container_ = new views::View; | 287 container_ = new views::View; |
291 container_->SetLayoutManager(new views::BoxLayout( | 288 container_->SetLayoutManager(new views::BoxLayout( |
292 views::BoxLayout::kHorizontal, 5, 0, 3)); | 289 views::BoxLayout::kHorizontal, 5, 0, 3)); |
293 container_->set_background(new SystemTrayBackground); | 290 container_->set_background(new SystemTrayBackground); |
294 set_border(views::Border::CreateEmptyBorder(0, 0, | 291 set_border(views::Border::CreateEmptyBorder(0, 0, |
295 kPaddingFromBottomOfScreen, kPaddingFromRightEdgeOfScreen)); | 292 kPaddingFromBottomOfScreen, kPaddingFromRightEdgeOfScreen)); |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 SchedulePaint(); | 426 SchedulePaint(); |
430 } | 427 } |
431 | 428 |
432 void SystemTray::OnWidgetClosing(views::Widget* widget) { | 429 void SystemTray::OnWidgetClosing(views::Widget* widget) { |
433 CHECK_EQ(popup_, widget); | 430 CHECK_EQ(popup_, widget); |
434 popup_ = NULL; | 431 popup_ = NULL; |
435 bubble_ = NULL; | 432 bubble_ = NULL; |
436 } | 433 } |
437 | 434 |
438 } // namespace ash | 435 } // namespace ash |
OLD | NEW |