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

Side by Side Diff: ash/wm/frame_painter.cc

Issue 10825086: ash: Update window frame art and transparency values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | chrome/app/theme/default_100_percent/ash/theme_frame_active.png » ('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/wm/frame_painter.h" 5 #include "ash/wm/frame_painter.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/shell_window_ids.h" 8 #include "ash/shell_window_ids.h"
9 #include "ash/wm/window_util.h" 9 #include "ash/wm/window_util.h"
10 #include "base/logging.h" // DCHECK 10 #include "base/logging.h" // DCHECK
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 window->TargetVisibility() && 113 window->TargetVisibility() &&
114 (window->type() == aura::client::WINDOW_TYPE_NORMAL || 114 (window->type() == aura::client::WINDOW_TYPE_NORMAL ||
115 window->type() == aura::client::WINDOW_TYPE_PANEL); 115 window->type() == aura::client::WINDOW_TYPE_PANEL);
116 } 116 }
117 117
118 } // namespace 118 } // namespace
119 119
120 namespace ash { 120 namespace ash {
121 121
122 // static 122 // static
123 int FramePainter::kActiveWindowOpacity = 230; // "Linus-approved" values 123 int FramePainter::kActiveWindowOpacity = 255; // 1.0
124 int FramePainter::kInactiveWindowOpacity = 204; 124 int FramePainter::kInactiveWindowOpacity = 255; // 1.0
125 int FramePainter::kSoloWindowOpacity = 51; 125 int FramePainter::kSoloWindowOpacity = 77; // 0.3
126 std::set<FramePainter*>* FramePainter::instances_ = NULL; 126 std::set<FramePainter*>* FramePainter::instances_ = NULL;
127 127
128 /////////////////////////////////////////////////////////////////////////////// 128 ///////////////////////////////////////////////////////////////////////////////
129 // FramePainter, public: 129 // FramePainter, public:
130 130
131 FramePainter::FramePainter() 131 FramePainter::FramePainter()
132 : frame_(NULL), 132 : frame_(NULL),
133 window_icon_(NULL), 133 window_icon_(NULL),
134 size_button_(NULL), 134 size_button_(NULL),
135 close_button_(NULL), 135 close_button_(NULL),
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 for (std::set<FramePainter*>::const_iterator it = instances_->begin(); 623 for (std::set<FramePainter*>::const_iterator it = instances_->begin();
624 it != instances_->end(); 624 it != instances_->end();
625 ++it) { 625 ++it) {
626 FramePainter* painter = *it; 626 FramePainter* painter = *it;
627 if (IsVisibleNormalWindow(painter->window_)) 627 if (IsVisibleNormalWindow(painter->window_))
628 painter->frame_->non_client_view()->SchedulePaint(); 628 painter->frame_->non_client_view()->SchedulePaint();
629 } 629 }
630 } 630 }
631 631
632 } // namespace ash 632 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | chrome/app/theme/default_100_percent/ash/theme_frame_active.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698