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