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

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

Issue 10910034: Attempt 2 at: Fixes crash that occured because NativeViewHostAura::Detach was not (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: da fix Created 8 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 | Annotate | Revision Log
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_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_WIN_H_ 5 #ifndef UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_WIN_H_
6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_WIN_H_ 6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_WIN_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ui/views/controls/native/native_view_host_wrapper.h" 9 #include "ui/views/controls/native/native_view_host_wrapper.h"
10 10
(...skipping 14 matching lines...) Expand all
25 virtual void RemovedFromWidget(); 25 virtual void RemovedFromWidget();
26 virtual void InstallClip(int x, int y, int w, int h); 26 virtual void InstallClip(int x, int y, int w, int h);
27 virtual bool HasInstalledClip(); 27 virtual bool HasInstalledClip();
28 virtual void UninstallClip(); 28 virtual void UninstallClip();
29 virtual void ShowWidget(int x, int y, int w, int h); 29 virtual void ShowWidget(int x, int y, int w, int h);
30 virtual void HideWidget(); 30 virtual void HideWidget();
31 virtual void SetFocus(); 31 virtual void SetFocus();
32 virtual gfx::NativeViewAccessible GetNativeViewAccessible(); 32 virtual gfx::NativeViewAccessible GetNativeViewAccessible();
33 33
34 private: 34 private:
35 // Invokes ViewRemoved() on the FocusManager for all the child Widgets of our
36 // NativeView. This is used when detaching to ensure the FocusManager doesn't
37 // have a reference to a View that is no longer reachable.
38 void ClearFocus();
39
40 // Our associated NativeViewHost. 35 // Our associated NativeViewHost.
41 NativeViewHost* host_; 36 NativeViewHost* host_;
42 37
43 // Have we installed a region on the gfx::NativeView used to clip to only the 38 // Have we installed a region on the gfx::NativeView used to clip to only the
44 // visible portion of the gfx::NativeView ? 39 // visible portion of the gfx::NativeView ?
45 bool installed_clip_; 40 bool installed_clip_;
46 41
47 DISALLOW_COPY_AND_ASSIGN(NativeViewHostWin); 42 DISALLOW_COPY_AND_ASSIGN(NativeViewHostWin);
48 }; 43 };
49 44
50 } // namespace views 45 } // namespace views
51 46
52 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_WIN_H_ 47 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_WIN_H_
OLDNEW
« no previous file with comments | « ui/views/controls/native/native_view_host_aura.cc ('k') | ui/views/controls/native/native_view_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698