1// Copyright (c) 2013 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. 4 5#ifndef UI_V2_PUBLIC_WINDOW_H_ 6#define UI_V2_PUBLIC_WINDOW_H_ 7 8#include "base/memory/scoped_ptr.h" 9#include "ui/v2/public/v2_export.h" 10#include "ui/v2/public/view.h" 11 12namespace v2 { 13 14// A Window is a View that has a nested View hierarchy. 15// All Windows have Layers. 16class V2_EXPORT Window : public View { 17 public: 18 Window(); 19 virtual ~Window(); 20 21 View* contents() { return contents_.get(); } 22 23 private: 24 // Nested view hierarchy. 25 scoped_ptr<View> contents_; 26 27 DISALLOW_COPY_AND_ASSIGN(Window); 28}; 29 30} // namespace v2 31 32#endif // UI_V2_PUBLIC_WINDOW_H_ 33