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/desktop/desktop_views_delegate.h" | 5 #include "views/desktop/desktop_views_delegate.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "views/desktop/desktop_window_view.h" | 8 #include "views/desktop/desktop_window_view.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
(...skipping 17 matching lines...) Expand all Loading... |
28 return NULL; | 28 return NULL; |
29 } | 29 } |
30 | 30 |
31 View* DesktopViewsDelegate::GetDefaultParentView() { | 31 View* DesktopViewsDelegate::GetDefaultParentView() { |
32 return DesktopWindowView::desktop_window_view; | 32 return DesktopWindowView::desktop_window_view; |
33 } | 33 } |
34 | 34 |
35 void DesktopViewsDelegate::SaveWindowPlacement(const Widget* widget, | 35 void DesktopViewsDelegate::SaveWindowPlacement(const Widget* widget, |
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) { | 38 ui::WindowShowState show_state) { |
39 } | 39 } |
40 | 40 |
41 bool DesktopViewsDelegate::GetSavedWindowBounds(const std::wstring& window_name, | 41 bool DesktopViewsDelegate::GetSavedWindowPlacement( |
42 gfx::Rect* bounds) const { | 42 const std::wstring& window_name, |
| 43 gfx::Rect* bounds, |
| 44 ui::WindowShowState* show_state) const { |
43 return false; | 45 return false; |
44 } | 46 } |
45 | 47 |
46 bool DesktopViewsDelegate::GetSavedMaximizedState( | |
47 const std::wstring& window_name, | |
48 bool* maximized) const { | |
49 return false; | |
50 } | |
51 | |
52 void DesktopViewsDelegate::NotifyAccessibilityEvent( | 48 void DesktopViewsDelegate::NotifyAccessibilityEvent( |
53 views::View* view, ui::AccessibilityTypes::Event event_type) { | 49 views::View* view, ui::AccessibilityTypes::Event event_type) { |
54 } | 50 } |
55 | 51 |
56 void DesktopViewsDelegate::NotifyMenuItemFocused( | 52 void DesktopViewsDelegate::NotifyMenuItemFocused( |
57 const std::wstring& menu_name, | 53 const std::wstring& menu_name, |
58 const std::wstring& menu_item_name, | 54 const std::wstring& menu_item_name, |
59 int item_index, | 55 int item_index, |
60 int item_count, | 56 int item_count, |
61 bool has_submenu) { | 57 bool has_submenu) { |
(...skipping 10 matching lines...) Expand all Loading... |
72 | 68 |
73 void DesktopViewsDelegate::ReleaseRef() { | 69 void DesktopViewsDelegate::ReleaseRef() { |
74 } | 70 } |
75 | 71 |
76 int DesktopViewsDelegate::GetDispositionForEvent(int event_flags) { | 72 int DesktopViewsDelegate::GetDispositionForEvent(int event_flags) { |
77 return 0; | 73 return 0; |
78 } | 74 } |
79 | 75 |
80 } // namespace desktop | 76 } // namespace desktop |
81 } // namespace views | 77 } // namespace views |
OLD | NEW |