Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: ash/desktop_background/desktop_background_view.h

Issue 10375010: Implement user selected wallpaper feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_VIEW_H_ 5 #ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_VIEW_H_
6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_VIEW_H_ 6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/desktop_background/desktop_background_resources.h" 9 #include "ash/desktop_background/desktop_background_resources.h"
10 #include "third_party/skia/include/core/SkBitmap.h" 10 #include "third_party/skia/include/core/SkBitmap.h"
11 #include "ui/views/view.h" 11 #include "ui/views/view.h"
12 #include "ui/views/widget/widget_delegate.h" 12 #include "ui/views/widget/widget_delegate.h"
13 13
14 namespace ash { 14 namespace ash {
15 namespace internal { 15 namespace internal {
16 16
17 class DesktopBackgroundView : public views::WidgetDelegateView { 17 class DesktopBackgroundView : public views::WidgetDelegateView {
18 public: 18 public:
19 DesktopBackgroundView(const SkBitmap& wallpaper, ImageLayout layout); 19 DesktopBackgroundView(const SkBitmap& wallpaper,
20 WallpaperLayout wallpaper_layout);
20 virtual ~DesktopBackgroundView(); 21 virtual ~DesktopBackgroundView();
21 22
22 private: 23 private:
23 // Overridden from views::View: 24 // Overridden from views::View:
24 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 25 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
25 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; 26 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
26 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; 27 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
27 28
28 SkBitmap wallpaper_; 29 SkBitmap wallpaper_;
29 ImageLayout image_layout_; 30 WallpaperLayout wallpaper_layout_;
30 31
31 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundView); 32 DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundView);
32 }; 33 };
33 34
34 } // namespace internal 35 } // namespace internal
35 } // namespace ash 36 } // namespace ash
36 37
37 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_VIEW_H_ 38 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_VIEW_H_
OLDNEW
« no previous file with comments | « ash/desktop_background/desktop_background_resources.h ('k') | ash/desktop_background/desktop_background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698