| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium OS 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 "window_manager/shadow.h" | 5 #include "window_manager/shadow.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 #include <gflags/gflags.h> | 8 #include <gflags/gflags.h> |
| 9 | 9 |
| 10 #include "chromeos/obsolete_logging.h" | 10 #include "chromeos/obsolete_logging.h" |
| 11 | 11 |
| 12 DEFINE_string(shadow_image_dir, "../assets/images", | 12 DEFINE_string(shadow_image_dir, "../assets/images", |
| 13 "Path to directory containing shadow images"); | 13 "Path to directory containing shadow images"); |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace window_manager { |
| 16 | 16 |
| 17 // Static members. | 17 // Static members. |
| 18 ClutterInterface::Actor* Shadow::top_texture_ = NULL; | 18 ClutterInterface::Actor* Shadow::top_texture_ = NULL; |
| 19 ClutterInterface::Actor* Shadow::bottom_texture_ = NULL; | 19 ClutterInterface::Actor* Shadow::bottom_texture_ = NULL; |
| 20 ClutterInterface::Actor* Shadow::left_texture_ = NULL; | 20 ClutterInterface::Actor* Shadow::left_texture_ = NULL; |
| 21 ClutterInterface::Actor* Shadow::right_texture_ = NULL; | 21 ClutterInterface::Actor* Shadow::right_texture_ = NULL; |
| 22 ClutterInterface::Actor* Shadow::tl_texture_ = NULL; | 22 ClutterInterface::Actor* Shadow::tl_texture_ = NULL; |
| 23 ClutterInterface::Actor* Shadow::tr_texture_ = NULL; | 23 ClutterInterface::Actor* Shadow::tr_texture_ = NULL; |
| 24 ClutterInterface::Actor* Shadow::bl_texture_ = NULL; | 24 ClutterInterface::Actor* Shadow::bl_texture_ = NULL; |
| 25 ClutterInterface::Actor* Shadow::br_texture_ = NULL; | 25 ClutterInterface::Actor* Shadow::br_texture_ = NULL; |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 FLAGS_shadow_image_dir + "/" + filename); | 149 FLAGS_shadow_image_dir + "/" + filename); |
| 150 actor->SetName(filename); | 150 actor->SetName(filename); |
| 151 // Even though we don't actually want to display it, we need to add the | 151 // Even though we don't actually want to display it, we need to add the |
| 152 // actor to the default stage; otherwise Clutter complains that actors | 152 // actor to the default stage; otherwise Clutter complains that actors |
| 153 // that are cloned from it are unmappable. | 153 // that are cloned from it are unmappable. |
| 154 actor->SetVisibility(false); | 154 actor->SetVisibility(false); |
| 155 clutter_->GetDefaultStage()->AddActor(actor); | 155 clutter_->GetDefaultStage()->AddActor(actor); |
| 156 return actor; | 156 return actor; |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // namespace chromeos | 159 } // namespace window_manager |
| OLD | NEW |