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

Side by Side Diff: ui/message_center/views/bounded_label.cc

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test Created 4 years, 1 month 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 | « ui/message_center/views/bounded_label.h ('k') | ui/message_center/views/message_view.h » ('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 "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
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
OLDNEW
« no previous file with comments | « ui/message_center/views/bounded_label.h ('k') | ui/message_center/views/message_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698