OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ | 5 #ifndef VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
6 #define VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ | 6 #define VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 void set_default_parent_view(View* view) { | 28 void set_default_parent_view(View* view) { |
29 default_parent_view_ = view; | 29 default_parent_view_ = view; |
30 } | 30 } |
31 | 31 |
32 // Overridden from ViewsDelegate: | 32 // Overridden from ViewsDelegate: |
33 virtual ui::Clipboard* GetClipboard() const OVERRIDE; | 33 virtual ui::Clipboard* GetClipboard() const OVERRIDE; |
34 virtual View* GetDefaultParentView() OVERRIDE; | 34 virtual View* GetDefaultParentView() OVERRIDE; |
35 virtual void SaveWindowPlacement(const Widget* window, | 35 virtual void SaveWindowPlacement(const Widget* window, |
36 const std::wstring& window_name, | 36 const std::wstring& window_name, |
37 const gfx::Rect& bounds, | 37 const gfx::Rect& bounds, |
38 bool maximized) OVERRIDE {} | 38 ui::WindowShowState show_state) OVERRIDE; |
39 virtual bool GetSavedWindowBounds(const std::wstring& window_name, | 39 virtual bool GetSavedWindowBounds(const std::wstring& window_name, |
40 gfx::Rect* bounds) const OVERRIDE; | 40 gfx::Rect* bounds) const OVERRIDE; |
41 | 41 |
42 virtual bool GetSavedMaximizedState(const std::wstring& window_name, | 42 virtual bool GetSavedWindowShowState( |
43 bool* maximized) const OVERRIDE; | 43 const std::wstring& window_name, |
| 44 ui::WindowShowState* show_state) const OVERRIDE; |
44 | 45 |
45 virtual void NotifyAccessibilityEvent( | 46 virtual void NotifyAccessibilityEvent( |
46 View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE {} | 47 View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE {} |
47 | 48 |
48 virtual void NotifyMenuItemFocused( | 49 virtual void NotifyMenuItemFocused( |
49 const std::wstring& menu_name, | 50 const std::wstring& menu_name, |
50 const std::wstring& menu_item_name, | 51 const std::wstring& menu_item_name, |
51 int item_index, | 52 int item_index, |
52 int item_count, | 53 int item_count, |
53 bool has_submenu) OVERRIDE {} | 54 bool has_submenu) OVERRIDE {} |
(...skipping 11 matching lines...) Expand all Loading... |
65 private: | 66 private: |
66 View* default_parent_view_; | 67 View* default_parent_view_; |
67 mutable scoped_ptr<ui::Clipboard> clipboard_; | 68 mutable scoped_ptr<ui::Clipboard> clipboard_; |
68 | 69 |
69 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); | 70 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); |
70 }; | 71 }; |
71 | 72 |
72 } // namespace views | 73 } // namespace views |
73 | 74 |
74 #endif // VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ | 75 #endif // VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
OLD | NEW |