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 ui::WindowShowState show_state) OVERRIDE; | 38 bool maximized) OVERRIDE {} |
39 virtual bool GetSavedWindowPlacement( | 39 virtual bool GetSavedWindowBounds(const std::wstring& window_name, |
40 const std::wstring& window_name, | 40 gfx::Rect* bounds) const OVERRIDE; |
41 gfx::Rect* bounds, | 41 |
42 ui::WindowShowState* show_state) const OVERRIDE; | 42 virtual bool GetSavedMaximizedState(const std::wstring& window_name, |
| 43 bool* maximized) const OVERRIDE; |
43 | 44 |
44 virtual void NotifyAccessibilityEvent( | 45 virtual void NotifyAccessibilityEvent( |
45 View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE {} | 46 View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE {} |
46 | 47 |
47 virtual void NotifyMenuItemFocused( | 48 virtual void NotifyMenuItemFocused( |
48 const std::wstring& menu_name, | 49 const std::wstring& menu_name, |
49 const std::wstring& menu_item_name, | 50 const std::wstring& menu_item_name, |
50 int item_index, | 51 int item_index, |
51 int item_count, | 52 int item_count, |
52 bool has_submenu) OVERRIDE {} | 53 bool has_submenu) OVERRIDE {} |
(...skipping 11 matching lines...) Expand all Loading... |
64 private: | 65 private: |
65 View* default_parent_view_; | 66 View* default_parent_view_; |
66 mutable scoped_ptr<ui::Clipboard> clipboard_; | 67 mutable scoped_ptr<ui::Clipboard> clipboard_; |
67 | 68 |
68 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); | 69 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); |
69 }; | 70 }; |
70 | 71 |
71 } // namespace views | 72 } // namespace views |
72 | 73 |
73 #endif // VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ | 74 #endif // VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
OLD | NEW |