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

Side by Side Diff: chrome/browser/views/extensions/extension_shelf.h

Issue 155446: Adds MSAA information to various (previously uncovered) bits of the UI, inclu... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_VIEWS_EXTENSIONS_EXTENSION_SHELF_H_ 5 #ifndef CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_SHELF_H_
6 #define CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_SHELF_H_ 6 #define CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_SHELF_H_
7 7
8 #include "app/gfx/canvas.h" 8 #include "app/gfx/canvas.h"
9 #include "base/task.h" 9 #include "base/task.h"
10 #include "chrome/browser/extensions/extension_shelf_model.h" 10 #include "chrome/browser/extensions/extension_shelf_model.h"
(...skipping 17 matching lines...) Expand all
28 28
29 // Get the current model. 29 // Get the current model.
30 ExtensionShelfModel* model() { return model_.get(); } 30 ExtensionShelfModel* model() { return model_.get(); }
31 31
32 // View 32 // View
33 virtual void Paint(gfx::Canvas* canvas); 33 virtual void Paint(gfx::Canvas* canvas);
34 virtual gfx::Size GetPreferredSize(); 34 virtual gfx::Size GetPreferredSize();
35 virtual void Layout(); 35 virtual void Layout();
36 virtual void OnMouseExited(const views::MouseEvent& event); 36 virtual void OnMouseExited(const views::MouseEvent& event);
37 virtual void OnMouseEntered(const views::MouseEvent& event); 37 virtual void OnMouseEntered(const views::MouseEvent& event);
38 virtual bool GetAccessibleName(std::wstring* name);
39 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role);
40 virtual void SetAccessibleName(const std::wstring& name);
38 41
39 // ExtensionContainer 42 // ExtensionContainer
40 virtual void OnExtensionMouseEvent(ExtensionView* view); 43 virtual void OnExtensionMouseEvent(ExtensionView* view);
41 virtual void OnExtensionMouseLeave(ExtensionView* view); 44 virtual void OnExtensionMouseLeave(ExtensionView* view);
42 45
43 // ExtensionShelfModelObserver 46 // ExtensionShelfModelObserver
44 virtual void ToolstripInsertedAt(ExtensionHost* toolstrip, int index); 47 virtual void ToolstripInsertedAt(ExtensionHost* toolstrip, int index);
45 virtual void ToolstripRemovingAt(ExtensionHost* toolstrip, int index); 48 virtual void ToolstripRemovingAt(ExtensionHost* toolstrip, int index);
46 virtual void ToolstripDraggingFrom(ExtensionHost* toolstrip, int index); 49 virtual void ToolstripDraggingFrom(ExtensionHost* toolstrip, int index);
47 virtual void ToolstripMoved(ExtensionHost* toolstrip, 50 virtual void ToolstripMoved(ExtensionHost* toolstrip,
(...skipping 30 matching lines...) Expand all
78 81
79 // Loads initial state from |model_|. 82 // Loads initial state from |model_|.
80 void LoadFromModel(); 83 void LoadFromModel();
81 84
82 // Background bitmap to draw under extension views. 85 // Background bitmap to draw under extension views.
83 SkBitmap background_; 86 SkBitmap background_;
84 87
85 // The model representing the toolstrips on the shelf. 88 // The model representing the toolstrips on the shelf.
86 scoped_ptr<ExtensionShelfModel> model_; 89 scoped_ptr<ExtensionShelfModel> model_;
87 90
91 // Storage of strings needed for accessibility.
92 std::wstring accessible_name_;
93
88 DISALLOW_COPY_AND_ASSIGN(ExtensionShelf); 94 DISALLOW_COPY_AND_ASSIGN(ExtensionShelf);
89 }; 95 };
90 96
91 #endif // CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_SHELF_H_ 97 #endif // CHROME_BROWSER_VIEWS_EXTENSIONS_EXTENSION_SHELF_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698