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

Side by Side Diff: content/browser/web_contents/aura/image_window_delegate.cc

Issue 860983004: text input focus: Supports Window::GetFocusedTextInputClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 #include "content/browser/web_contents/aura/image_window_delegate.h" 5 #include "content/browser/web_contents/aura/image_window_delegate.h"
6 6
7 #include "ui/base/cursor/cursor.h" 7 #include "ui/base/cursor/cursor.h"
8 #include "ui/base/hit_test.h" 8 #include "ui/base/hit_test.h"
9 #include "ui/compositor/compositor.h" 9 #include "ui/compositor/compositor.h"
10 #include "ui/gfx/canvas.h" 10 #include "ui/gfx/canvas.h"
(...skipping 25 matching lines...) Expand all
36 return gfx::Size(); 36 return gfx::Size();
37 } 37 }
38 38
39 void ImageWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds, 39 void ImageWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds,
40 const gfx::Rect& new_bounds) { 40 const gfx::Rect& new_bounds) {
41 window_size_ = new_bounds.size(); 41 window_size_ = new_bounds.size();
42 if (!image_.IsEmpty()) 42 if (!image_.IsEmpty())
43 size_mismatch_ = window_size_ != image_.AsImageSkia().size(); 43 size_mismatch_ = window_size_ != image_.AsImageSkia().size();
44 } 44 }
45 45
46 ui::TextInputClient* ImageWindowDelegate::GetFocusedTextInputClient() {
47 return nullptr;
48 }
49
46 gfx::NativeCursor ImageWindowDelegate::GetCursor(const gfx::Point& point) { 50 gfx::NativeCursor ImageWindowDelegate::GetCursor(const gfx::Point& point) {
47 return gfx::kNullCursor; 51 return gfx::kNullCursor;
48 } 52 }
49 53
50 int ImageWindowDelegate::GetNonClientComponent(const gfx::Point& point) const { 54 int ImageWindowDelegate::GetNonClientComponent(const gfx::Point& point) const {
51 return HTNOWHERE; 55 return HTNOWHERE;
52 } 56 }
53 57
54 bool ImageWindowDelegate::ShouldDescendIntoChildForEventHandling( 58 bool ImageWindowDelegate::ShouldDescendIntoChildForEventHandling(
55 aura::Window* child, 59 aura::Window* child,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 92 }
89 93
90 bool ImageWindowDelegate::HasHitTestMask() const { 94 bool ImageWindowDelegate::HasHitTestMask() const {
91 return false; 95 return false;
92 } 96 }
93 97
94 void ImageWindowDelegate::GetHitTestMask(gfx::Path* mask) const { 98 void ImageWindowDelegate::GetHitTestMask(gfx::Path* mask) const {
95 } 99 }
96 100
97 } // namespace content 101 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/aura/image_window_delegate.h ('k') | content/browser/web_contents/web_contents_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698