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

Side by Side Diff: ui/views/controls/native/native_view_host.h

Issue 533403002: Fix touch selection for Athena home card (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed NeedsNotificationWhenVisibleBoundsChange() Created 6 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
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 #ifndef UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ 5 #ifndef UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_
6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ 6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Overridden from View: 79 // Overridden from View:
80 virtual gfx::Size GetPreferredSize() const OVERRIDE; 80 virtual gfx::Size GetPreferredSize() const OVERRIDE;
81 virtual void Layout() OVERRIDE; 81 virtual void Layout() OVERRIDE;
82 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 82 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
83 virtual void VisibilityChanged(View* starting_from, bool is_visible) OVERRIDE; 83 virtual void VisibilityChanged(View* starting_from, bool is_visible) OVERRIDE;
84 virtual void OnFocus() OVERRIDE; 84 virtual void OnFocus() OVERRIDE;
85 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; 85 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE;
86 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; 86 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE;
87 87
88 protected: 88 protected:
89 virtual bool NeedsNotificationWhenVisibleBoundsChange() const OVERRIDE; 89 virtual bool GetNeedsNotificationWhenVisibleBoundsChange() const OVERRIDE;
90 virtual void OnVisibleBoundsChanged() OVERRIDE; 90 virtual void OnVisibleBoundsChanged() OVERRIDE;
91 virtual void ViewHierarchyChanged( 91 virtual void ViewHierarchyChanged(
92 const ViewHierarchyChangedDetails& details) OVERRIDE; 92 const ViewHierarchyChangedDetails& details) OVERRIDE;
93 virtual const char* GetClassName() const OVERRIDE; 93 virtual const char* GetClassName() const OVERRIDE;
94 94
95 private: 95 private:
96 friend class NativeViewHostAuraTest; 96 friend class NativeViewHostAuraTest;
97 97
98 // Detach the native view. |destroyed| is true if the native view is 98 // Detach the native view. |destroyed| is true if the native view is
99 // detached because it's being destroyed, or false otherwise. 99 // detached because it's being destroyed, or false otherwise.
(...skipping 23 matching lines...) Expand all
123 123
124 // The view that should be given focus when this NativeViewHost is focused. 124 // The view that should be given focus when this NativeViewHost is focused.
125 View* focus_view_; 125 View* focus_view_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(NativeViewHost); 127 DISALLOW_COPY_AND_ASSIGN(NativeViewHost);
128 }; 128 };
129 129
130 } // namespace views 130 } // namespace views
131 131
132 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ 132 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/contents_web_view.cc ('k') | ui/views/controls/native/native_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698