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

Side by Side Diff: ui/aura_shell/sample_window.cc

Issue 7890054: Adds code for a new Aura shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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
« no previous file with comments | « ui/aura_shell/sample_window.h ('k') | ui/aura_shell/shell_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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 #include "ui/aura_shell/sample_window.h"
6
7 #include "ui/gfx/canvas.h"
8 #include "views/widget/widget.h"
9
10 // static
11 void SampleWindow::CreateSampleWindow() {
12 views::Widget::CreateWindowWithBounds(new SampleWindow,
13 gfx::Rect(120, 150, 400, 300))->Show();
14 }
15
16 SampleWindow::SampleWindow() {
17 }
18
19 SampleWindow::~SampleWindow() {
20 }
21
22 void SampleWindow::OnPaint(gfx::Canvas* canvas) {
23 canvas->FillRectInt(SK_ColorDKGRAY, 0, 0, width(), height());
24 }
25
26 std::wstring SampleWindow::GetWindowTitle() const {
27 return L"Sample Window";
28 }
29
30 views::View* SampleWindow::GetContentsView() {
31 return this;
32 }
OLDNEW
« no previous file with comments | « ui/aura_shell/sample_window.h ('k') | ui/aura_shell/shell_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698