Chromium Code Reviews

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

Issue 273017: Move native_widget_types and gtk_native_view_id_manager from base/gfx to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 VIEWS_CONTROLS_NATIVE_VIEW_HOST_H_ 5 #ifndef VIEWS_CONTROLS_NATIVE_VIEW_HOST_H_
6 #define VIEWS_CONTROLS_NATIVE_VIEW_HOST_H_ 6 #define VIEWS_CONTROLS_NATIVE_VIEW_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "app/gfx/native_widget_types.h"
10 #include "views/view.h" 11 #include "views/view.h"
11 12
12 #include "base/gfx/native_widget_types.h"
13
14 namespace views { 13 namespace views {
15 14
16 class NativeViewHostWrapper; 15 class NativeViewHostWrapper;
17 16
18 // A View type that hosts a gfx::NativeView. The bounds of the native view are 17 // A View type that hosts a gfx::NativeView. The bounds of the native view are
19 // kept in sync with the bounds of this view as it is moved and sized. 18 // kept in sync with the bounds of this view as it is moved and sized.
20 // Under the hood, a platform-specific NativeViewHostWrapper implementation does 19 // Under the hood, a platform-specific NativeViewHostWrapper implementation does
21 // the platform-specific work of manipulating the underlying OS widget type. 20 // the platform-specific work of manipulating the underlying OS widget type.
22 class NativeViewHost : public View { 21 class NativeViewHost : public View {
23 public: 22 public:
(...skipping 71 matching lines...)
95 94
96 // The view that should be given focus when this NativeViewHost is focused. 95 // The view that should be given focus when this NativeViewHost is focused.
97 View* focus_view_; 96 View* focus_view_;
98 97
99 DISALLOW_COPY_AND_ASSIGN(NativeViewHost); 98 DISALLOW_COPY_AND_ASSIGN(NativeViewHost);
100 }; 99 };
101 100
102 } // namespace views 101 } // namespace views
103 102
104 #endif // VIEWS_CONTROLS_NATIVE_VIEW_HOST_H_ 103 #endif // VIEWS_CONTROLS_NATIVE_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « views/controls/menu/view_menu_delegate.h ('k') | views/controls/scrollbar/native_scroll_bar_win.cc » ('j') | no next file with comments »

Powered by Google App Engine