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

Side by Side Diff: chrome/browser/ui/views/conflicting_module_view_win.h

Issue 2980713002: Views a11y: Obey DialogDelegate::GetAccessibleWindowRole() rather than making a dialog-within-a-dia… (Closed)
Patch Set: Fix test Created 3 years, 5 months 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CHROME_BROWSER_UI_VIEWS_CONFLICTING_MODULE_VIEW_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_CONFLICTING_MODULE_VIEW_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_CONFLICTING_MODULE_VIEW_WIN_H_ 6 #define CHROME_BROWSER_UI_VIEWS_CONFLICTING_MODULE_VIEW_WIN_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/scoped_observer.h" 9 #include "base/scoped_observer.h"
10 #include "chrome/browser/win/enumerate_modules_model.h" 10 #include "chrome/browser/win/enumerate_modules_model.h"
(...skipping 13 matching lines...) Expand all
24 24
25 // Show the Disabled Extension bubble, if needed. 25 // Show the Disabled Extension bubble, if needed.
26 static void MaybeShow(Browser* browser, views::View* anchor_view); 26 static void MaybeShow(Browser* browser, views::View* anchor_view);
27 27
28 private: 28 private:
29 ~ConflictingModuleView() override; 29 ~ConflictingModuleView() override;
30 30
31 // Shows the bubble and updates the counter for how often it has been shown. 31 // Shows the bubble and updates the counter for how often it has been shown.
32 void ShowBubble(); 32 void ShowBubble();
33 33
34 // views::BubbleDialogDelegateView implementation: 34 // views::BubbleDialogDelegateView:
35 ui::AXRole GetAccessibleWindowRole() const override;
35 void OnWidgetClosing(views::Widget* widget) override; 36 void OnWidgetClosing(views::Widget* widget) override;
36 bool Accept() override; 37 bool Accept() override;
37 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; 38 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
38 void Init() override; 39 void Init() override;
39 40
40 // views::View implementation.
41 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
42
43 // EnumerateModulesModel::Observer: 41 // EnumerateModulesModel::Observer:
44 void OnConflictsAcknowledged() override; 42 void OnConflictsAcknowledged() override;
45 43
46 Browser* browser_; 44 Browser* browser_;
47 45
48 ScopedObserver<EnumerateModulesModel, 46 ScopedObserver<EnumerateModulesModel,
49 EnumerateModulesModel::Observer> observer_; 47 EnumerateModulesModel::Observer> observer_;
50 48
51 // The link to the help center for this conflict. 49 // The link to the help center for this conflict.
52 GURL help_center_url_; 50 GURL help_center_url_;
53 51
54 DISALLOW_COPY_AND_ASSIGN(ConflictingModuleView); 52 DISALLOW_COPY_AND_ASSIGN(ConflictingModuleView);
55 }; 53 };
56 54
57 #endif // CHROME_BROWSER_UI_VIEWS_CONFLICTING_MODULE_VIEW_WIN_H_ 55 #endif // CHROME_BROWSER_UI_VIEWS_CONFLICTING_MODULE_VIEW_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/conflicting_module_view_win.cc » ('j') | ui/views/window/dialog_delegate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698