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

Unified Diff: ui/aura/window.cc

Issue 121773003: Makes Window::Init take a WindowLayerType instead of LayerType. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge to master Created 6 years, 11 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 | « ui/aura/window.h ('k') | ui/aura/window_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 19360892d34fe656b069b1b47f3fbf13199bcae1..be4aa8c89bca86714cd567794ea126a416ea7029 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -40,19 +40,6 @@ namespace aura {
namespace {
-WindowLayerType UILayerTypeToWindowLayerType(ui::LayerType layer_type) {
- switch (layer_type) {
- case ui::LAYER_NOT_DRAWN:
- return WINDOW_LAYER_NOT_DRAWN;
- case ui::LAYER_TEXTURED:
- return WINDOW_LAYER_TEXTURED;
- case ui::LAYER_SOLID_COLOR:
- return WINDOW_LAYER_SOLID_COLOR;
- }
- NOTREACHED();
- return WINDOW_LAYER_NOT_DRAWN;
-}
-
ui::LayerType WindowLayerTypeToUILayerType(WindowLayerType window_layer_type) {
switch (window_layer_type) {
case WINDOW_LAYER_NONE:
@@ -279,11 +266,7 @@ Window::~Window() {
}
}
-void Window::Init(ui::LayerType layer_type) {
- InitWithWindowLayerType(UILayerTypeToWindowLayerType(layer_type));
-}
-
-void Window::InitWithWindowLayerType(WindowLayerType window_layer_type) {
+void Window::Init(WindowLayerType window_layer_type) {
if (window_layer_type != WINDOW_LAYER_NONE) {
layer_ = new ui::Layer(WindowLayerTypeToUILayerType(window_layer_type));
layer_owner_.reset(layer_);
« no previous file with comments | « ui/aura/window.h ('k') | ui/aura/window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698