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

Side by Side Diff: ui/aura/test/test_window_delegate.h

Issue 10391165: Notification for device scale factor change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: demo_main fix Created 8 years, 7 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/demo/demo_main.cc ('k') | ui/aura/test/test_window_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ 5 #ifndef UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_
6 #define UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ 6 #define UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "third_party/skia/include/core/SkColor.h" 10 #include "third_party/skia/include/core/SkColor.h"
(...skipping 20 matching lines...) Expand all
31 virtual void OnBlur() OVERRIDE; 31 virtual void OnBlur() OVERRIDE;
32 virtual bool OnKeyEvent(KeyEvent* event) OVERRIDE; 32 virtual bool OnKeyEvent(KeyEvent* event) OVERRIDE;
33 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; 33 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE;
34 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; 34 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE;
35 virtual bool OnMouseEvent(MouseEvent* event) OVERRIDE; 35 virtual bool OnMouseEvent(MouseEvent* event) OVERRIDE;
36 virtual ui::TouchStatus OnTouchEvent(TouchEvent* event) OVERRIDE; 36 virtual ui::TouchStatus OnTouchEvent(TouchEvent* event) OVERRIDE;
37 virtual ui::GestureStatus OnGestureEvent(GestureEvent* event) OVERRIDE; 37 virtual ui::GestureStatus OnGestureEvent(GestureEvent* event) OVERRIDE;
38 virtual bool CanFocus() OVERRIDE; 38 virtual bool CanFocus() OVERRIDE;
39 virtual void OnCaptureLost() OVERRIDE; 39 virtual void OnCaptureLost() OVERRIDE;
40 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 40 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
41 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
41 virtual void OnWindowDestroying() OVERRIDE; 42 virtual void OnWindowDestroying() OVERRIDE;
42 virtual void OnWindowDestroyed() OVERRIDE; 43 virtual void OnWindowDestroyed() OVERRIDE;
43 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE; 44 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE;
44 45
45 private: 46 private:
46 int window_component_; 47 int window_component_;
47 48
48 DISALLOW_COPY_AND_ASSIGN(TestWindowDelegate); 49 DISALLOW_COPY_AND_ASSIGN(TestWindowDelegate);
49 }; 50 };
50 51
(...skipping 15 matching lines...) Expand all
66 SkColor color_; 67 SkColor color_;
67 ui::KeyboardCode last_key_code_; 68 ui::KeyboardCode last_key_code_;
68 69
69 DISALLOW_COPY_AND_ASSIGN(ColorTestWindowDelegate); 70 DISALLOW_COPY_AND_ASSIGN(ColorTestWindowDelegate);
70 }; 71 };
71 72
72 } // namespace test 73 } // namespace test
73 } // namespace aura 74 } // namespace aura
74 75
75 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ 76 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/aura/test/test_window_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698