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 namespace aura_shell { |
| 12 namespace internal { |
| 13 |
| 14 class SampleWindow : public views::WidgetDelegateView { |
| 15 public: |
| 16 static void CreateSampleWindow(); |
| 17 |
| 18 private: |
| 19 SampleWindow(); |
| 20 virtual ~SampleWindow(); |
| 21 |
| 22 // Overridden from views::View: |
| 23 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 24 |
| 25 // Overridden from views::WidgetDelegate: |
| 26 virtual std::wstring GetWindowTitle() const OVERRIDE; |
| 27 virtual View* GetContentsView() OVERRIDE; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(SampleWindow); |
| 30 }; |
| 31 |
| 32 } // namespace internal |
| 33 } // namespace aura_shell |
| 34 |
| 35 #endif // UI_AURA_SHELL_SAMPLE_WINDOW_H_ |
OLD | NEW |