OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CONTENT_BROWSER_WEB_CONTENTS_AURA_IMAGE_WINDOW_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_AURA_IMAGE_WINDOW_DELEGATE_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_IMAGE_WINDOW_DELEGATE_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_IMAGE_WINDOW_DELEGATE_H_ |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "ui/aura/window_delegate.h" | 9 #include "ui/aura/window_delegate.h" |
10 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 bool has_image() const { return !image_.IsEmpty(); } | 22 bool has_image() const { return !image_.IsEmpty(); } |
23 | 23 |
24 protected: | 24 protected: |
25 ~ImageWindowDelegate() override; | 25 ~ImageWindowDelegate() override; |
26 | 26 |
27 // Overridden from aura::WindowDelegate: | 27 // Overridden from aura::WindowDelegate: |
28 gfx::Size GetMinimumSize() const override; | 28 gfx::Size GetMinimumSize() const override; |
29 gfx::Size GetMaximumSize() const override; | 29 gfx::Size GetMaximumSize() const override; |
30 void OnBoundsChanged(const gfx::Rect& old_bounds, | 30 void OnBoundsChanged(const gfx::Rect& old_bounds, |
31 const gfx::Rect& new_bounds) override; | 31 const gfx::Rect& new_bounds) override; |
| 32 ui::TextInputClient* GetFocusedTextInputClient() override; |
32 gfx::NativeCursor GetCursor(const gfx::Point& point) override; | 33 gfx::NativeCursor GetCursor(const gfx::Point& point) override; |
33 int GetNonClientComponent(const gfx::Point& point) const override; | 34 int GetNonClientComponent(const gfx::Point& point) const override; |
34 bool ShouldDescendIntoChildForEventHandling( | 35 bool ShouldDescendIntoChildForEventHandling( |
35 aura::Window* child, | 36 aura::Window* child, |
36 const gfx::Point& location) override; | 37 const gfx::Point& location) override; |
37 bool CanFocus() override; | 38 bool CanFocus() override; |
38 void OnCaptureLost() override; | 39 void OnCaptureLost() override; |
39 void OnPaint(gfx::Canvas* canvas) override; | 40 void OnPaint(gfx::Canvas* canvas) override; |
40 void OnDeviceScaleFactorChanged(float device_scale_factor) override; | 41 void OnDeviceScaleFactorChanged(float device_scale_factor) override; |
41 void OnWindowDestroying(aura::Window* window) override; | 42 void OnWindowDestroying(aura::Window* window) override; |
(...skipping 10 matching lines...) Expand all Loading... |
52 // the image size is smaller than the window size, then the delegate paints a | 53 // the image size is smaller than the window size, then the delegate paints a |
53 // white background for the missing regions. | 54 // white background for the missing regions. |
54 bool size_mismatch_; | 55 bool size_mismatch_; |
55 | 56 |
56 DISALLOW_COPY_AND_ASSIGN(ImageWindowDelegate); | 57 DISALLOW_COPY_AND_ASSIGN(ImageWindowDelegate); |
57 }; | 58 }; |
58 | 59 |
59 } // namespace content | 60 } // namespace content |
60 | 61 |
61 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_IMAGE_WINDOW_DELEGATE_H_ | 62 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_IMAGE_WINDOW_DELEGATE_H_ |
OLD | NEW |