Index: chrome/browser/ui/views/profile_tag_view.h |
=================================================================== |
--- chrome/browser/ui/views/profile_tag_view.h (revision 88686) |
+++ chrome/browser/ui/views/profile_tag_view.h (working copy) |
@@ -1,68 +0,0 @@ |
-// 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 CHROME_BROWSER_UI_VIEWS_PROFILE_TAG_VIEW_H_ |
-#define CHROME_BROWSER_UI_VIEWS_PROFILE_TAG_VIEW_H_ |
-#pragma once |
- |
-#include "third_party/skia/include/core/SkBitmap.h" |
-#include "views/view.h" |
- |
-class BrowserFrame; |
-class ProfileMenuButton; |
- |
-namespace gfx { |
-class Canvas; |
-} |
- |
-// ProfileTag |
-// |
-// Displays the tinted button image underneath the ProfileMenuButton. |
- |
-class ProfileTagView : public views::View { |
- public: |
- // Height of profile tag. |
- static const int kProfileTagHeight = 20; |
- |
- ProfileTagView(BrowserFrame* frame, |
- ProfileMenuButton* profile_menu_button); |
- virtual ~ProfileTagView(); |
- |
- // Paint the profile tag background image on the given canvas. |
- virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
- |
- void set_is_signed_in(bool is_signed_in) { is_signed_in_ = is_signed_in; } |
- |
- private: |
- // Create the bitmaps to be displayed on the frame behind the profile button. |
- void CreateProfileTagBitmaps(); |
- |
- // True if the bitmaps to display the profile tag have been created. |
- bool profile_tag_bitmaps_created_; |
- |
- // Bitmaps for the profile tag in active and inactive states. |
- SkBitmap active_profile_tag_center_; |
- SkBitmap active_profile_tag_left_; |
- SkBitmap active_profile_tag_right_; |
- SkBitmap inactive_profile_tag_center_; |
- SkBitmap inactive_profile_tag_left_; |
- SkBitmap inactive_profile_tag_right_; |
- // Bitmaps used for a themed profile background. |
- SkBitmap active_profile_tag_center_background_; |
- SkBitmap active_profile_tag_left_background_; |
- SkBitmap active_profile_tag_right_background_; |
- |
- // True if the user is signed in to a personalized Chrome profile. |
- bool is_signed_in_; |
- |
- // The frame that hosts this view. |
- BrowserFrame* frame_; |
- |
- // The button to be displayed above this view. |
- ProfileMenuButton* profile_menu_button_; |
- |
- DISALLOW_COPY_AND_ASSIGN(ProfileTagView); |
-}; |
- |
-#endif // CHROME_BROWSER_UI_VIEWS_PROFILE_TAG_VIEW_H_ |