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 #include "views/test/test_views_delegate.h" | 5 #include "views/test/test_views_delegate.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "ui/base/clipboard/clipboard.h" | 8 #include "ui/base/clipboard/clipboard.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
(...skipping 13 matching lines...) Expand all Loading... |
24 // Note that we need a MessageLoop for the next call to work. | 24 // Note that we need a MessageLoop for the next call to work. |
25 clipboard_.reset(new ui::Clipboard); | 25 clipboard_.reset(new ui::Clipboard); |
26 } | 26 } |
27 return clipboard_.get(); | 27 return clipboard_.get(); |
28 } | 28 } |
29 | 29 |
30 View* TestViewsDelegate::GetDefaultParentView() { | 30 View* TestViewsDelegate::GetDefaultParentView() { |
31 return default_parent_view_; | 31 return default_parent_view_; |
32 } | 32 } |
33 | 33 |
| 34 void TestViewsDelegate::SaveWindowPlacement(const Widget* window, |
| 35 const std::wstring& window_name, |
| 36 const gfx::Rect& bounds, |
| 37 ui::WindowShowState show_state) { |
| 38 } |
| 39 |
34 bool TestViewsDelegate::GetSavedWindowBounds(const std::wstring& window_name, | 40 bool TestViewsDelegate::GetSavedWindowBounds(const std::wstring& window_name, |
35 gfx::Rect* bounds) const { | 41 gfx::Rect* bounds) const { |
36 return false; | 42 return false; |
37 } | 43 } |
38 | 44 |
39 bool TestViewsDelegate::GetSavedMaximizedState(const std::wstring& window_name, | 45 bool TestViewsDelegate::GetSavedWindowShowState( |
40 bool* maximized) const { | 46 const std::wstring& window_name, |
| 47 ui::WindowShowState* show_state) const { |
41 return false; | 48 return false; |
42 } | 49 } |
43 | 50 |
44 int TestViewsDelegate::GetDispositionForEvent(int event_flags) { | 51 int TestViewsDelegate::GetDispositionForEvent(int event_flags) { |
45 return 0; | 52 return 0; |
46 } | 53 } |
47 | 54 |
48 } // namespace views | 55 } // namespace views |
OLD | NEW |