Ignore title parameter for navigator.registerProtocolHandler
[chromium-blink-merge.git] / mojo / services / view_manager / view.cc
blob18c98d102e60f892d6300e0da374bccaca605ce5
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
3 // found in the LICENSE file.
5 #include "mojo/services/view_manager/view.h"
7 #include "mojo/services/view_manager/node.h"
9 namespace mojo {
10 namespace services {
11 namespace view_manager {
13 View::View(const ViewId& id) : id_(id), node_(NULL) {}
15 View::~View() {
18 void View::SetBitmap(const SkBitmap& bitmap) {
19 bitmap_ = bitmap;
20 if (node_) {
21 node_->window()->SchedulePaintInRect(
22 gfx::Rect(node_->window()->bounds().size()));
26 } // namespace view_manager
27 } // namespace services
28 } // namespace mojo