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

Side by Side Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.cc

Issue 8771006: views: Move the remaining file from views/ to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 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 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.h" 5 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.h"
6 6
7 #include "chrome/browser/tab_contents/web_drop_target_win.h" 7 #include "chrome/browser/tab_contents/web_drop_target_win.h"
8 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate .h" 8 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate .h"
9 #include "chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h" 9 #include "chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h"
10 #include "content/browser/renderer_host/render_widget_host_view_win.h" 10 #include "content/browser/renderer_host/render_widget_host_view_win.h"
11 #include "content/browser/tab_contents/tab_contents.h" 11 #include "content/browser/tab_contents/tab_contents.h"
12 #include "content/browser/tab_contents/tab_contents_view.h" 12 #include "content/browser/tab_contents/tab_contents_view.h"
13 #include "ui/views/views_delegate.h"
13 #include "ui/views/widget/widget.h" 14 #include "ui/views/widget/widget.h"
14 #include "views/views_delegate.h"
15 15
16 namespace { 16 namespace {
17 17
18 // Tabs must be created as child widgets, otherwise they will be given 18 // Tabs must be created as child widgets, otherwise they will be given
19 // a FocusManager which will conflict with the FocusManager of the 19 // a FocusManager which will conflict with the FocusManager of the
20 // window they eventually end up attached to. 20 // window they eventually end up attached to.
21 // 21 //
22 // A tab will not have a parent HWND whenever it is not active in its 22 // A tab will not have a parent HWND whenever it is not active in its
23 // host window - for example at creation time and when it's in the 23 // host window - for example at creation time and when it's in the
24 // background, so we provide a default widget to host them. 24 // background, so we provide a default widget to host them.
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 } 336 }
337 337
338 //////////////////////////////////////////////////////////////////////////////// 338 ////////////////////////////////////////////////////////////////////////////////
339 // NativeTabContentsView, public: 339 // NativeTabContentsView, public:
340 340
341 // static 341 // static
342 NativeTabContentsView* NativeTabContentsView::CreateNativeTabContentsView( 342 NativeTabContentsView* NativeTabContentsView::CreateNativeTabContentsView(
343 internal::NativeTabContentsViewDelegate* delegate) { 343 internal::NativeTabContentsViewDelegate* delegate) {
344 return new NativeTabContentsViewWin(delegate); 344 return new NativeTabContentsViewWin(delegate);
345 } 345 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tab_contents/native_tab_contents_view_aura.cc ('k') | chrome/browser/ui/views/task_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698