| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/status/status_area_bubble.h" | 5 #include "chrome/browser/chromeos/status/status_area_bubble.h" |
| 6 | 6 |
| 7 #include "ui/base/accessibility/accessible_view_state.h" |
| 8 #include "ui/views/layout/box_layout.h" |
| 9 #include "ui/views/layout/fill_layout.h" |
| 7 #include "views/controls/label.h" | 10 #include "views/controls/label.h" |
| 8 #include "views/layout/box_layout.h" | |
| 9 #include "views/layout/fill_layout.h" | |
| 10 #include "ui/base/accessibility/accessible_view_state.h" | |
| 11 | 11 |
| 12 namespace chromeos { | 12 namespace chromeos { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 const size_t kCloseBubbleTimerInSec = 5; | 16 const size_t kCloseBubbleTimerInSec = 5; |
| 17 | 17 |
| 18 class CloseBubbleWhenClickedView : public views::View { | 18 class CloseBubbleWhenClickedView : public views::View { |
| 19 public: | 19 public: |
| 20 explicit CloseBubbleWhenClickedView(StatusAreaBubbleController* controller) | 20 explicit CloseBubbleWhenClickedView(StatusAreaBubbleController* controller) |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 133 |
| 134 bool StatusAreaBubbleController::FadeInOnShow() { | 134 bool StatusAreaBubbleController::FadeInOnShow() { |
| 135 return false; | 135 return false; |
| 136 } | 136 } |
| 137 | 137 |
| 138 string16 StatusAreaBubbleController::GetAccessibleName() { | 138 string16 StatusAreaBubbleController::GetAccessibleName() { |
| 139 return content_->GetMessage(); | 139 return content_->GetMessage(); |
| 140 } | 140 } |
| 141 | 141 |
| 142 } // namespace chromeos | 142 } // namespace chromeos |
| OLD | NEW |