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

Side by Side Diff: ui/aura_extra/image_window_delegate.h

Issue 1177503003: Remove the 2-level input method system & InputMethodBridge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased & removed views::View::GetTextInputClient & removed GetFocusedTextInputClient. Created 5 years, 6 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
OLDNEW
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 UI_AURA_EXTRA_IMAGE_WINDOW_DELEGATE_H_ 5 #ifndef UI_AURA_EXTRA_IMAGE_WINDOW_DELEGATE_H_
6 #define UI_AURA_EXTRA_IMAGE_WINDOW_DELEGATE_H_ 6 #define UI_AURA_EXTRA_IMAGE_WINDOW_DELEGATE_H_
7 7
8 #include "third_party/skia/include/core/SkColor.h" 8 #include "third_party/skia/include/core/SkColor.h"
9 #include "ui/aura/window_delegate.h" 9 #include "ui/aura/window_delegate.h"
10 #include "ui/aura_extra/aura_extra_export.h" 10 #include "ui/aura_extra/aura_extra_export.h"
(...skipping 22 matching lines...) Expand all
33 bool has_image() const { return !image_.IsEmpty(); } 33 bool has_image() const { return !image_.IsEmpty(); }
34 34
35 protected: 35 protected:
36 ~ImageWindowDelegate() override; 36 ~ImageWindowDelegate() override;
37 37
38 // Overridden from aura::WindowDelegate: 38 // Overridden from aura::WindowDelegate:
39 gfx::Size GetMinimumSize() const override; 39 gfx::Size GetMinimumSize() const override;
40 gfx::Size GetMaximumSize() const override; 40 gfx::Size GetMaximumSize() const override;
41 void OnBoundsChanged(const gfx::Rect& old_bounds, 41 void OnBoundsChanged(const gfx::Rect& old_bounds,
42 const gfx::Rect& new_bounds) override; 42 const gfx::Rect& new_bounds) override;
43 ui::TextInputClient* GetFocusedTextInputClient() override;
44 gfx::NativeCursor GetCursor(const gfx::Point& point) override; 43 gfx::NativeCursor GetCursor(const gfx::Point& point) override;
45 int GetNonClientComponent(const gfx::Point& point) const override; 44 int GetNonClientComponent(const gfx::Point& point) const override;
46 bool ShouldDescendIntoChildForEventHandling( 45 bool ShouldDescendIntoChildForEventHandling(
47 aura::Window* child, 46 aura::Window* child,
48 const gfx::Point& location) override; 47 const gfx::Point& location) override;
49 bool CanFocus() override; 48 bool CanFocus() override;
50 void OnCaptureLost() override; 49 void OnCaptureLost() override;
51 void OnPaint(const ui::PaintContext& context) override; 50 void OnPaint(const ui::PaintContext& context) override;
52 void OnDeviceScaleFactorChanged(float device_scale_factor) override; 51 void OnDeviceScaleFactorChanged(float device_scale_factor) override;
53 void OnWindowDestroying(aura::Window* window) override; 52 void OnWindowDestroying(aura::Window* window) override;
(...skipping 13 matching lines...) Expand all
67 // the image size is smaller than the window size, then the delegate fills the 66 // the image size is smaller than the window size, then the delegate fills the
68 // missing regions with |background_color_| (defult is white). 67 // missing regions with |background_color_| (defult is white).
69 bool size_mismatch_; 68 bool size_mismatch_;
70 69
71 DISALLOW_COPY_AND_ASSIGN(ImageWindowDelegate); 70 DISALLOW_COPY_AND_ASSIGN(ImageWindowDelegate);
72 }; 71 };
73 72
74 } // namespace aura_extra 73 } // namespace aura_extra
75 74
76 #endif // UI_AURA_EXTRA_IMAGE_WINDOW_DELEGATE_H_ 75 #endif // UI_AURA_EXTRA_IMAGE_WINDOW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698