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