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

Unified Diff: chrome/browser/ui/views/profile_tag_view.h

Issue 7003080: Change profile menu button to avatar button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Change profile menu button to avatar button Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/profile_menu_button.cc ('k') | chrome/browser/ui/views/profile_tag_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chrome/browser/ui/views/profile_menu_button.cc ('k') | chrome/browser/ui/views/profile_tag_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698