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

Unified Diff: ui/oak/oak_tree_model.cc

Issue 173183002: Remove oak windows and its flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove one more oak.gyp reference Created 6 years, 10 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/oak/oak_tree_model.h ('k') | ui/oak/oak_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/oak/oak_tree_model.cc
diff --git a/ui/oak/oak_tree_model.cc b/ui/oak/oak_tree_model.cc
deleted file mode 100644
index c5247c35bd84f103af00ffd824f23027eb71b075..0000000000000000000000000000000000000000
--- a/ui/oak/oak_tree_model.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/oak/oak_tree_model.h"
-
-#include "base/strings/utf_string_conversions.h"
-#include "ui/aura/root_window.h"
-#include "ui/aura/window.h"
-#include "ui/base/models/tree_node_model.h"
-
-namespace oak {
-namespace internal {
-
-base::string16 GetNodeTitleForWindow(aura::Window* window) {
- std::string window_name = window->name();
- if (window_name.empty())
- window_name.append("Unnamed window");
- return base::ASCIIToUTF16(window_name);
-}
-
-void AddChildWindows(aura::Window* parent_window, WindowNode* parent_node) {
- aura::Window::Windows::const_iterator it = parent_window->children().begin();
- for (; it != parent_window->children().end(); ++it) {
- WindowNode* child_node = new WindowNode(GetNodeTitleForWindow(*it), *it);
- parent_node->Add(child_node, parent_node->child_count());
- AddChildWindows(*it, child_node);
- }
-}
-
-TreeOfWindows* GenerateModel(aura::Window* root) {
- WindowNode* root_node = new WindowNode(GetNodeTitleForWindow(root), root);
- TreeOfWindows* tree = new TreeOfWindows(root_node);
- AddChildWindows(root, root_node);
- return tree;
-}
-
-} // namespace internal
-} // namespace oak
« no previous file with comments | « ui/oak/oak_tree_model.h ('k') | ui/oak/oak_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698