| OLD | NEW |
| 1 // Copyright (c) 2011 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_THEME_BACKGROUND_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_THEME_BACKGROUND_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_THEME_BACKGROUND_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_THEME_BACKGROUND_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ui/views/background.h" | 10 #include "ui/views/background.h" |
| 11 | 11 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 24 // image. It takes care of active/inactive state, incognito state and | 24 // image. It takes care of active/inactive state, incognito state and |
| 25 // the offset from the frame view. | 25 // the offset from the frame view. |
| 26 // | 26 // |
| 27 //////////////////////////////////////////////////////////////////////////////// | 27 //////////////////////////////////////////////////////////////////////////////// |
| 28 class ThemeBackground : public views::Background { | 28 class ThemeBackground : public views::Background { |
| 29 public: | 29 public: |
| 30 explicit ThemeBackground(BrowserView* browser); | 30 explicit ThemeBackground(BrowserView* browser); |
| 31 virtual ~ThemeBackground() {} | 31 virtual ~ThemeBackground() {} |
| 32 | 32 |
| 33 // Overridden from views:;Background. | 33 // Overridden from views:;Background. |
| 34 virtual void Paint(gfx::Canvas* canvas, views::View* view) const OVERRIDE; | 34 virtual void Paint(gfx::CanvasSkia* canvas, views::View* view) const OVERRIDE; |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 BrowserView* browser_view_; | 37 BrowserView* browser_view_; |
| 38 | 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(ThemeBackground); | 39 DISALLOW_COPY_AND_ASSIGN(ThemeBackground); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 #endif // CHROME_BROWSER_UI_VIEWS_THEME_BACKGROUND_H_ | 42 #endif // CHROME_BROWSER_UI_VIEWS_THEME_BACKGROUND_H_ |
| OLD | NEW |