OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_AURA_SHELL_SAMPLE_WINDOW_H_ |
| 6 #define UI_AURA_SHELL_SAMPLE_WINDOW_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "views/widget/widget_delegate.h" |
| 10 |
| 11 class SampleWindow : public views::WidgetDelegateView { |
| 12 public: |
| 13 static void CreateSampleWindow(); |
| 14 |
| 15 private: |
| 16 SampleWindow(); |
| 17 virtual ~SampleWindow(); |
| 18 |
| 19 // Overridden from views::View: |
| 20 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 21 |
| 22 // Overridden from views::WidgetDelegate: |
| 23 virtual std::wstring GetWindowTitle() const OVERRIDE; |
| 24 virtual View* GetContentsView() OVERRIDE; |
| 25 |
| 26 DISALLOW_COPY_AND_ASSIGN(SampleWindow); |
| 27 }; |
| 28 |
| 29 |
| 30 #endif // UI_AURA_SHELL_SAMPLE_WINDOW_H_ |
OLD | NEW |