summaryrefslogtreecommitdiffstats
path: root/views/test
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-14 06:56:33 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-14 06:56:33 +0000
commit79e549faf26611d5ac05bc4f7fefd4a71a23fcb2 (patch)
treee7c50ebe8d193233ce2b06bbf5751bb9e82115b7 /views/test
parent36096983abafe5aa7a1df56904db3c0c8fa9ee2e (diff)
downloadchromium_src-79e549faf26611d5ac05bc4f7fefd4a71a23fcb2.zip
chromium_src-79e549faf26611d5ac05bc4f7fefd4a71a23fcb2.tar.gz
chromium_src-79e549faf26611d5ac05bc4f7fefd4a71a23fcb2.tar.bz2
Re-land: Refactor Views accessibility.
BUG=74988 TEST=none Review URL: http://codereview.chromium.org/6581010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78006 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/test')
-rw-r--r--views/test/test_views_delegate.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/views/test/test_views_delegate.h b/views/test/test_views_delegate.h
index 9aaee21..55febf6 100644
--- a/views/test/test_views_delegate.h
+++ b/views/test/test_views_delegate.h
@@ -6,6 +6,7 @@
#define VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
#include "base/scoped_ptr.h"
+#include "ui/base/accessibility/accessibility_types.h"
#include "ui/base/clipboard/clipboard.h"
#include "views/views_delegate.h"
@@ -23,16 +24,18 @@ class TestViewsDelegate : public views::ViewsDelegate {
virtual void SaveWindowPlacement(views::Window* window,
const std::wstring& window_name,
const gfx::Rect& bounds,
- bool maximized) {
- }
+ bool maximized) OVERRIDE { }
virtual bool GetSavedWindowBounds(views::Window* window,
const std::wstring& window_name,
gfx::Rect* bounds) const;
+
virtual bool GetSavedMaximizedState(views::Window* window,
const std::wstring& window_name,
bool* maximized) const;
+
virtual void NotifyAccessibilityEvent(
- views::View* view, AccessibilityTypes::Event event_type) {}
+ views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE {}
+
virtual void NotifyMenuItemFocused(
const std::wstring& menu_name,
const std::wstring& menu_item_name,
@@ -40,12 +43,13 @@ class TestViewsDelegate : public views::ViewsDelegate {
int item_count,
bool has_submenu) {}
#if defined(OS_WIN)
- virtual HICON GetDefaultWindowIcon() const {
+ virtual HICON GetDefaultWindowIcon() const OVERRIDE {
return NULL;
}
#endif
- virtual void AddRef() {}
- virtual void ReleaseRef() {}
+
+ virtual void AddRef() OVERRIDE {}
+ virtual void ReleaseRef() OVERRIDE {}
private:
mutable scoped_ptr<ui::Clipboard> clipboard_;