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

Side by Side Diff: ui/aura_shell/launcher/view_model.cc

Issue 8742030: views: Move view.h to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and fix conflicts Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/aura_shell/launcher/view_model.h" 5 #include "ui/aura_shell/launcher/view_model.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "views/view.h" 8 #include "ui/views/view.h"
9 9
10 namespace aura_shell { 10 namespace aura_shell {
11 11
12 ViewModel::ViewModel() { 12 ViewModel::ViewModel() {
13 } 13 }
14 14
15 ViewModel::~ViewModel() { 15 ViewModel::~ViewModel() {
16 // view are owned by their parent, no need to delete them. 16 // view are owned by their parent, no need to delete them.
17 } 17 }
18 18
(...skipping 27 matching lines...) Expand all
46 46
47 int ViewModel::GetIndexOfView(views::View* view) const { 47 int ViewModel::GetIndexOfView(views::View* view) const {
48 for (size_t i = 0; i < entries_.size(); ++i) { 48 for (size_t i = 0; i < entries_.size(); ++i) {
49 if (entries_[i].view == view) 49 if (entries_[i].view == view)
50 return static_cast<int>(i); 50 return static_cast<int>(i);
51 } 51 }
52 return -1; 52 return -1;
53 } 53 }
54 54
55 } // namespace aura_shell 55 } // namespace aura_shell
OLDNEW
« no previous file with comments | « ui/aura_shell/drag_drop_controller_unittest.cc ('k') | ui/aura_shell/launcher/view_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698