OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |