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

Side by Side Diff: ui/aura/window_unittest.cc

Issue 7903018: More shell content. (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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "ui/aura/desktop.h" 9 #include "ui/aura/desktop.h"
10 #include "ui/aura/event.h" 10 #include "ui/aura/event.h"
(...skipping 12 matching lines...) Expand all
23 23
24 namespace { 24 namespace {
25 25
26 // WindowDelegate implementation with all methods stubbed out. 26 // WindowDelegate implementation with all methods stubbed out.
27 class WindowDelegateImpl : public WindowDelegate { 27 class WindowDelegateImpl : public WindowDelegate {
28 public: 28 public:
29 WindowDelegateImpl() {} 29 WindowDelegateImpl() {}
30 virtual ~WindowDelegateImpl() {} 30 virtual ~WindowDelegateImpl() {}
31 31
32 // Overriden from WindowDelegate: 32 // Overriden from WindowDelegate:
33 virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
34 const gfx::Rect& new_bounds) OVERRIDE {}
33 virtual void OnFocus() OVERRIDE {} 35 virtual void OnFocus() OVERRIDE {}
34 virtual void OnBlur() OVERRIDE {} 36 virtual void OnBlur() OVERRIDE {}
35 virtual bool OnKeyEvent(KeyEvent* event) OVERRIDE { 37 virtual bool OnKeyEvent(KeyEvent* event) OVERRIDE {
36 return false; 38 return false;
37 } 39 }
38 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE { 40 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE {
39 return HTCLIENT; 41 return HTCLIENT;
40 } 42 }
41 virtual bool OnMouseEvent(MouseEvent* event) OVERRIDE { return false; } 43 virtual bool OnMouseEvent(MouseEvent* event) OVERRIDE { return false; }
42 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {} 44 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {}
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 // Both the parent and child should have been destroyed. 274 // Both the parent and child should have been destroyed.
273 EXPECT_EQ(1, parent_delegate.destroying_count()); 275 EXPECT_EQ(1, parent_delegate.destroying_count());
274 EXPECT_EQ(1, parent_delegate.destroyed_count()); 276 EXPECT_EQ(1, parent_delegate.destroyed_count());
275 EXPECT_EQ(1, child_delegate.destroying_count()); 277 EXPECT_EQ(1, child_delegate.destroying_count());
276 EXPECT_EQ(1, child_delegate.destroyed_count()); 278 EXPECT_EQ(1, child_delegate.destroyed_count());
277 } 279 }
278 280
279 } // namespace internal 281 } // namespace internal
280 } // namespace aura 282 } // namespace aura
281 283
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698