| 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 #ifndef UI_VIEWS_DESKTOP_DESKTOP_VIEWS_DELEGATE_H_ | |
| 6 #define UI_VIEWS_DESKTOP_DESKTOP_VIEWS_DELEGATE_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "views/views_delegate.h" | |
| 10 | |
| 11 namespace views { | |
| 12 namespace desktop { | |
| 13 | |
| 14 class DesktopViewsDelegate : public ViewsDelegate { | |
| 15 public: | |
| 16 DesktopViewsDelegate(); | |
| 17 virtual ~DesktopViewsDelegate(); | |
| 18 | |
| 19 private: | |
| 20 // Overridden from ViewsDelegate: | |
| 21 virtual ui::Clipboard* GetClipboard() const OVERRIDE; | |
| 22 virtual View* GetDefaultParentView() OVERRIDE; | |
| 23 virtual void SaveWindowPlacement(const Widget* widget, | |
| 24 const std::string& window_name, | |
| 25 const gfx::Rect& bounds, | |
| 26 ui::WindowShowState show_state) OVERRIDE; | |
| 27 virtual bool GetSavedWindowPlacement( | |
| 28 const std::string& window_name, | |
| 29 gfx::Rect* bounds, | |
| 30 ui::WindowShowState* show_state) const OVERRIDE; | |
| 31 virtual void NotifyAccessibilityEvent( | |
| 32 views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE; | |
| 33 virtual void NotifyMenuItemFocused(const string16& menu_name, | |
| 34 const string16& menu_item_name, | |
| 35 int item_index, | |
| 36 int item_count, | |
| 37 bool has_submenu) OVERRIDE; | |
| 38 #if defined(OS_WIN) | |
| 39 virtual HICON GetDefaultWindowIcon() const OVERRIDE; | |
| 40 #endif | |
| 41 virtual void AddRef() OVERRIDE; | |
| 42 virtual void ReleaseRef() OVERRIDE; | |
| 43 virtual int GetDispositionForEvent(int event_flags) OVERRIDE; | |
| 44 | |
| 45 DISALLOW_COPY_AND_ASSIGN(DesktopViewsDelegate); | |
| 46 }; | |
| 47 | |
| 48 } // namespace desktop | |
| 49 } // namespace views | |
| 50 | |
| 51 #endif // UI_VIEWS_DESKTOP_DESKTOP_VIEWS_DELEGATE_H_ | |
| OLD | NEW |