| OLD | NEW |
| 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 "ui/message_center/views/bounded_label.h" | 5 #include "ui/message_center/views/bounded_label.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 | 10 |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 } | 326 } |
| 327 | 327 |
| 328 void BoundedLabel::OnPaint(gfx::Canvas* canvas) { | 328 void BoundedLabel::OnPaint(gfx::Canvas* canvas) { |
| 329 label_->OnPaint(canvas); | 329 label_->OnPaint(canvas); |
| 330 } | 330 } |
| 331 | 331 |
| 332 bool BoundedLabel::CanProcessEventsWithinSubtree() const { | 332 bool BoundedLabel::CanProcessEventsWithinSubtree() const { |
| 333 return label_->CanProcessEventsWithinSubtree(); | 333 return label_->CanProcessEventsWithinSubtree(); |
| 334 } | 334 } |
| 335 | 335 |
| 336 void BoundedLabel::GetAccessibleState(ui::AXViewState* state) { | 336 void BoundedLabel::GetAccessibleNodeData(ui::AXNodeData* node_data) { |
| 337 label_->GetAccessibleState(state); | 337 label_->GetAccessibleNodeData(node_data); |
| 338 } | 338 } |
| 339 | 339 |
| 340 void BoundedLabel::OnBoundsChanged(const gfx::Rect& previous_bounds) { | 340 void BoundedLabel::OnBoundsChanged(const gfx::Rect& previous_bounds) { |
| 341 label_->SetBoundsRect(bounds()); | 341 label_->SetBoundsRect(bounds()); |
| 342 views::View::OnBoundsChanged(previous_bounds); | 342 views::View::OnBoundsChanged(previous_bounds); |
| 343 } | 343 } |
| 344 | 344 |
| 345 void BoundedLabel::OnNativeThemeChanged(const ui::NativeTheme* theme) { | 345 void BoundedLabel::OnNativeThemeChanged(const ui::NativeTheme* theme) { |
| 346 label_->SetNativeTheme(theme); | 346 label_->SetNativeTheme(theme); |
| 347 } | 347 } |
| 348 | 348 |
| 349 base::string16 BoundedLabel::GetWrappedTextForTest(int width, int lines) { | 349 base::string16 BoundedLabel::GetWrappedTextForTest(int width, int lines) { |
| 350 return base::JoinString(label_->GetWrappedText(width, lines), | 350 return base::JoinString(label_->GetWrappedText(width, lines), |
| 351 base::ASCIIToUTF16("\n")); | 351 base::ASCIIToUTF16("\n")); |
| 352 } | 352 } |
| 353 | 353 |
| 354 } // namespace message_center | 354 } // namespace message_center |
| OLD | NEW |