blob: 09020aec02ea70f8ac2344072a0d80b39e64c328 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_AURA_SHELL_DESKTOP_BACKGROUND_VIEW_H_
#define UI_AURA_SHELL_DESKTOP_BACKGROUND_VIEW_H_
#pragma once
#include "views/view.h"
#include "views/widget/widget_delegate.h"
#include "third_party/skia/include/core/SkBitmap.h"
namespace aura_shell {
namespace internal {
class DesktopBackgroundView : public views::WidgetDelegateView {
public:
DesktopBackgroundView();
virtual ~DesktopBackgroundView();
private:
// Overridden from views::View:
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
SkBitmap wallpaper_;
DISALLOW_COPY_AND_ASSIGN(DesktopBackgroundView);
};
} // namespace internal
} // namespace aura_shell
#endif // UI_AURA_SHELL_DESKTOP_BACKGROUND_VIEW_H_
|