| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 #include "ui/base/accessibility/accessibility_types.h" | 11 #include "ui/base/accessibility/accessibility_types.h" |
| 12 #include "ui/views/views_delegate.h" | 12 #include "ui/views/views_delegate.h" |
| 13 | 13 |
| 14 class ChromeViewsDelegate : public views::ViewsDelegate { | 14 class ChromeViewsDelegate : public views::ViewsDelegate { |
| 15 public: | 15 public: |
| 16 ChromeViewsDelegate() {} | 16 ChromeViewsDelegate() {} |
| 17 virtual ~ChromeViewsDelegate() {} | 17 virtual ~ChromeViewsDelegate() {} |
| 18 | 18 |
| 19 // Overridden from views::ViewsDelegate: | 19 // Overridden from views::ViewsDelegate: |
| 20 virtual ui::Clipboard* GetClipboard() const OVERRIDE; | |
| 21 virtual void SaveWindowPlacement(const views::Widget* window, | 20 virtual void SaveWindowPlacement(const views::Widget* window, |
| 22 const std::string& window_name, | 21 const std::string& window_name, |
| 23 const gfx::Rect& bounds, | 22 const gfx::Rect& bounds, |
| 24 ui::WindowShowState show_state) OVERRIDE; | 23 ui::WindowShowState show_state) OVERRIDE; |
| 25 virtual bool GetSavedWindowPlacement( | 24 virtual bool GetSavedWindowPlacement( |
| 26 const std::string& window_name, | 25 const std::string& window_name, |
| 27 gfx::Rect* bounds, | 26 gfx::Rect* bounds, |
| 28 ui::WindowShowState* show_state) const OVERRIDE; | 27 ui::WindowShowState* show_state) const OVERRIDE; |
| 29 virtual void NotifyAccessibilityEvent( | 28 virtual void NotifyAccessibilityEvent( |
| 30 views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE; | 29 views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 52 | 51 |
| 53 virtual content::WebContents* CreateWebContents( | 52 virtual content::WebContents* CreateWebContents( |
| 54 content::BrowserContext* browser_context, | 53 content::BrowserContext* browser_context, |
| 55 content::SiteInstance* site_instance) OVERRIDE; | 54 content::SiteInstance* site_instance) OVERRIDE; |
| 56 | 55 |
| 57 private: | 56 private: |
| 58 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); | 57 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); |
| 59 }; | 58 }; |
| 60 | 59 |
| 61 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 60 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
| OLD | NEW |