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

Side by Side Diff: ash/system/settings/tray_settings.cc

Issue 9703078: ash: Highlight the items in the uber-tray popup when hovering. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/system/tray/system_tray.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ash/system/settings/tray_settings.h" 5 #include "ash/system/settings/tray_settings.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/system/tray/system_tray_delegate.h" 8 #include "ash/system/tray/system_tray_delegate.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 39
40 virtual ~SettingsView() {} 40 virtual ~SettingsView() {}
41 41
42 // Overridden from views::View. 42 // Overridden from views::View.
43 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE { 43 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE {
44 ash::Shell::GetInstance()->tray_delegate()->ShowSettings(); 44 ash::Shell::GetInstance()->tray_delegate()->ShowSettings();
45 return true; 45 return true;
46 } 46 }
47 47
48 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE {
49 gfx::Font font = label_->font();
50 label_->SetFont(font.DeriveFont(0,
51 font.GetStyle() | gfx::Font::UNDERLINED));
52 SchedulePaint();
53 }
54
55 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE {
56 gfx::Font font = label_->font();
57 label_->SetFont(font.DeriveFont(0,
58 font.GetStyle() & ~gfx::Font::UNDERLINED));
59 SchedulePaint();
60 }
61
62 private: 48 private:
63 views::Label* label_; 49 views::Label* label_;
64 50
65 DISALLOW_COPY_AND_ASSIGN(SettingsView); 51 DISALLOW_COPY_AND_ASSIGN(SettingsView);
66 }; 52 };
67 53
68 } // namespace 54 } // namespace
69 55
70 namespace ash { 56 namespace ash {
71 namespace internal { 57 namespace internal {
(...skipping 30 matching lines...) Expand all
102 } 88 }
103 89
104 void TraySettings::DestroyDefaultView() { 90 void TraySettings::DestroyDefaultView() {
105 } 91 }
106 92
107 void TraySettings::DestroyDetailedView() { 93 void TraySettings::DestroyDetailedView() {
108 } 94 }
109 95
110 } // namespace internal 96 } // namespace internal
111 } // namespace ash 97 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/system/tray/system_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698