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

Side by Side Diff: mojo/services/view_manager/view.cc

Issue 418983002: Nukes view_manager namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resolve merge Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/services/view_manager/view.h" 5 #include "mojo/services/view_manager/view.h"
6 6
7 #include "mojo/services/view_manager/node.h" 7 #include "mojo/services/view_manager/node.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 namespace view_manager {
11 namespace service { 10 namespace service {
12 11
13 View::View(const ViewId& id) : id_(id), node_(NULL) {} 12 View::View(const ViewId& id) : id_(id), node_(NULL) {}
14 13
15 View::~View() { 14 View::~View() {
16 } 15 }
17 16
18 void View::SetBitmap(const SkBitmap& bitmap) { 17 void View::SetBitmap(const SkBitmap& bitmap) {
19 bitmap_ = bitmap; 18 bitmap_ = bitmap;
20 if (node_) { 19 if (node_) {
21 node_->window()->SchedulePaintInRect( 20 node_->window()->SchedulePaintInRect(
22 gfx::Rect(node_->window()->bounds().size())); 21 gfx::Rect(node_->window()->bounds().size()));
23 } 22 }
24 } 23 }
25 24
26 } // namespace service 25 } // namespace service
27 } // namespace view_manager
28 } // namespace mojo 26 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/view_manager/view.h ('k') | mojo/services/view_manager/view_manager_init_service_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698