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

Side by Side Diff: chrome/browser/ui/views/autofill/password_generation_popup_view_views.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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ui/views/autofill/password_generation_popup_view_views. h" 5 #include "chrome/browser/ui/views/autofill/password_generation_popup_view_views. h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "chrome/browser/ui/autofill/password_generation_popup_controller.h" 9 #include "chrome/browser/ui/autofill/password_generation_popup_controller.h"
10 #include "chrome/browser/ui/autofill/popup_constants.h" 10 #include "chrome/browser/ui/autofill/popup_constants.h"
11 #include "ui/accessibility/ax_view_state.h" 11 #include "ui/accessibility/ax_node_data.h"
12 #include "ui/base/resource/resource_bundle.h" 12 #include "ui/base/resource/resource_bundle.h"
13 #include "ui/gfx/canvas.h" 13 #include "ui/gfx/canvas.h"
14 #include "ui/gfx/color_palette.h" 14 #include "ui/gfx/color_palette.h"
15 #include "ui/gfx/paint_vector_icon.h" 15 #include "ui/gfx/paint_vector_icon.h"
16 #include "ui/gfx/vector_icons_public.h" 16 #include "ui/gfx/vector_icons_public.h"
17 #include "ui/views/background.h" 17 #include "ui/views/background.h"
18 #include "ui/views/border.h" 18 #include "ui/views/border.h"
19 #include "ui/views/controls/image_view.h" 19 #include "ui/views/controls/image_view.h"
20 #include "ui/views/controls/label.h" 20 #include "ui/views/controls/label.h"
21 #include "ui/views/controls/styled_label.h" 21 #include "ui/views/controls/styled_label.h"
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 controller->container_view()); 272 controller->container_view());
273 273
274 // If the top level widget can't be found, cancel the popup since we can't 274 // If the top level widget can't be found, cancel the popup since we can't
275 // fully set it up. 275 // fully set it up.
276 if (!observing_widget) 276 if (!observing_widget)
277 return NULL; 277 return NULL;
278 278
279 return new PasswordGenerationPopupViewViews(controller, observing_widget); 279 return new PasswordGenerationPopupViewViews(controller, observing_widget);
280 } 280 }
281 281
282 void PasswordGenerationPopupViewViews::GetAccessibleState( 282 void PasswordGenerationPopupViewViews::GetAccessibleNodeData(
283 ui::AXViewState* state) { 283 ui::AXNodeData* node_data) {
284 state->name = controller_->SuggestedText(); 284 node_data->SetName(controller_->SuggestedText());
285 state->role = ui::AX_ROLE_MENU_ITEM; 285 node_data->role = ui::AX_ROLE_MENU_ITEM;
286 } 286 }
287 287
288 } // namespace autofill 288 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698