| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ui/views/desktop/desktop_views_delegate.h" | |
| 6 | |
| 7 #include "base/logging.h" | |
| 8 #include "ui/views/desktop/desktop_window_view.h" | |
| 9 | |
| 10 namespace views { | |
| 11 namespace desktop { | |
| 12 | |
| 13 //////////////////////////////////////////////////////////////////////////////// | |
| 14 // DesktopViewsDelegate, public: | |
| 15 | |
| 16 DesktopViewsDelegate::DesktopViewsDelegate() { | |
| 17 DCHECK(!views::ViewsDelegate::views_delegate); | |
| 18 views::ViewsDelegate::views_delegate = this; | |
| 19 } | |
| 20 | |
| 21 DesktopViewsDelegate::~DesktopViewsDelegate() { | |
| 22 } | |
| 23 | |
| 24 //////////////////////////////////////////////////////////////////////////////// | |
| 25 // DesktopViewsDelegate, ViewsDelegate implementation: | |
| 26 | |
| 27 ui::Clipboard* DesktopViewsDelegate::GetClipboard() const { | |
| 28 return NULL; | |
| 29 } | |
| 30 | |
| 31 View* DesktopViewsDelegate::GetDefaultParentView() { | |
| 32 return DesktopWindowView::desktop_window_view; | |
| 33 } | |
| 34 | |
| 35 void DesktopViewsDelegate::SaveWindowPlacement(const Widget* widget, | |
| 36 const std::string& window_name, | |
| 37 const gfx::Rect& bounds, | |
| 38 ui::WindowShowState show_state) { | |
| 39 } | |
| 40 | |
| 41 bool DesktopViewsDelegate::GetSavedWindowPlacement( | |
| 42 const std::string& window_name, | |
| 43 gfx::Rect* bounds, | |
| 44 ui::WindowShowState* show_state) const { | |
| 45 return false; | |
| 46 } | |
| 47 | |
| 48 void DesktopViewsDelegate::NotifyAccessibilityEvent( | |
| 49 views::View* view, ui::AccessibilityTypes::Event event_type) { | |
| 50 } | |
| 51 | |
| 52 void DesktopViewsDelegate::NotifyMenuItemFocused(const string16& menu_name, | |
| 53 const string16& menu_item_name, | |
| 54 int item_index, | |
| 55 int item_count, | |
| 56 bool has_submenu) { | |
| 57 } | |
| 58 | |
| 59 #if defined(OS_WIN) | |
| 60 HICON DesktopViewsDelegate::GetDefaultWindowIcon() const { | |
| 61 return NULL; | |
| 62 } | |
| 63 #endif | |
| 64 | |
| 65 void DesktopViewsDelegate::AddRef() { | |
| 66 } | |
| 67 | |
| 68 void DesktopViewsDelegate::ReleaseRef() { | |
| 69 } | |
| 70 | |
| 71 int DesktopViewsDelegate::GetDispositionForEvent(int event_flags) { | |
| 72 return 0; | |
| 73 } | |
| 74 | |
| 75 } // namespace desktop | |
| 76 } // namespace views | |
| OLD | NEW |