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

Side by Side Diff: ui/aura_shell/launcher/tabbed_launcher_button.h

Issue 8418006: Changes around the launcher so that it only shows the most recently (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 UI_AURA_SHELL_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_ 5 #ifndef UI_AURA_SHELL_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_
6 #define UI_AURA_SHELL_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_ 6 #define UI_AURA_SHELL_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/aura_shell/launcher/launcher_types.h" 9 #include "ui/aura_shell/launcher/launcher_types.h"
10 #include "views/controls/button/custom_button.h" 10 #include "views/controls/button/custom_button.h"
(...skipping 22 matching lines...) Expand all
33 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; 33 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
34 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; 34 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
35 virtual void OnMouseCaptureLost() OVERRIDE; 35 virtual void OnMouseCaptureLost() OVERRIDE;
36 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; 36 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE;
37 37
38 private: 38 private:
39 LauncherTabbedImages images_; 39 LauncherTabbedImages images_;
40 40
41 LauncherButtonHost* host_; 41 LauncherButtonHost* host_;
42 42
43 static SkBitmap* bg_image_; 43 // Background images. Which one is chosen depends upon how many images are
44 // provided.
45 static SkBitmap* bg_image_1_;
46 static SkBitmap* bg_image_2_;
47 static SkBitmap* bg_image_3_;
44 48
45 DISALLOW_COPY_AND_ASSIGN(TabbedLauncherButton); 49 DISALLOW_COPY_AND_ASSIGN(TabbedLauncherButton);
46 }; 50 };
47 51
48 } // namespace internal 52 } // namespace internal
49 } // namespace aura_shell 53 } // namespace aura_shell
50 54
51 #endif // UI_AURA_SHELL_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_ 55 #endif // UI_AURA_SHELL_LAUNCHER_TABBED_LAUNCHER_BUTTON_H_
OLDNEW
« no previous file with comments | « ui/aura_shell/examples/aura_shell_main.cc ('k') | ui/aura_shell/launcher/tabbed_launcher_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698