blob: df987f70e8911953ea93523eba939a6126962dd2 (
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
36
37
38
39
40
41
42
43
44
45
|
// 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_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_
#define UI_AURA_SHELL_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_
#pragma once
#include "ui/aura_shell/launcher/launcher_types.h"
#include "views/controls/button/custom_button.h"
namespace aura_shell {
namespace internal {
// Button used for items on the launcher corresponding to tabbed windows.
class TabbedLauncherButton : public views::CustomButton {
public:
explicit TabbedLauncherButton(views::ButtonListener* listener);
virtual ~TabbedLauncherButton();
// Sets the images to display for this entry.
void SetImages(const LauncherTabbedImages& images);
// View overrides:
virtual gfx::Size GetPreferredSize() OVERRIDE;
protected:
// View overrides:
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
virtual void ViewHierarchyChanged(bool is_add,
views::View* parent,
views::View* child) OVERRIDE;
private:
LauncherTabbedImages images_;
static SkBitmap* bg_image_;
DISALLOW_COPY_AND_ASSIGN(TabbedLauncherButton);
};
} // namespace internal
} // namespace aura_shell
#endif // UI_AURA_SHELL_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_
|