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

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

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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) 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/tab_contents_view_views.h" 5 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/browser/download/download_shelf.h" 9 #include "chrome/browser/download/download_shelf.h"
10 #include "chrome/browser/renderer_host/render_view_host.h" 10 #include "chrome/browser/renderer_host/render_view_host.h"
11 #include "chrome/browser/renderer_host/render_view_host_factory.h" 11 #include "chrome/browser/renderer_host/render_view_host_factory.h"
12 #include "chrome/browser/renderer_host/render_widget_host_view_views.h" 12 #include "chrome/browser/renderer_host/render_widget_host_view_views.h"
13 #include "chrome/browser/tab_contents/interstitial_page.h" 13 #include "chrome/browser/tab_contents/interstitial_page.h"
14 #include "chrome/browser/tab_contents/tab_contents.h" 14 #include "chrome/browser/tab_contents/tab_contents.h"
15 #include "chrome/browser/tab_contents/tab_contents_delegate.h" 15 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
16 #include "chrome/browser/ui/views/sad_tab_view.h" 16 #include "chrome/browser/ui/views/sad_tab_view.h"
17 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h" 17 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h"
18 #include "gfx/canvas_skia_paint.h" 18 #include "ui/gfx/canvas_skia_paint.h"
19 #include "gfx/point.h" 19 #include "ui/gfx/point.h"
20 #include "gfx/rect.h" 20 #include "ui/gfx/rect.h"
21 #include "gfx/size.h" 21 #include "ui/gfx/size.h"
22 #include "views/controls/native/native_view_host.h" 22 #include "views/controls/native/native_view_host.h"
23 #include "views/focus/focus_manager.h" 23 #include "views/focus/focus_manager.h"
24 #include "views/focus/view_storage.h" 24 #include "views/focus/view_storage.h"
25 #include "views/layout/fill_layout.h" 25 #include "views/layout/fill_layout.h"
26 #include "views/screen.h" 26 #include "views/screen.h"
27 #include "views/widget/widget.h" 27 #include "views/widget/widget.h"
28 28
29 using WebKit::WebDragOperation; 29 using WebKit::WebDragOperation;
30 using WebKit::WebDragOperationsMask; 30 using WebKit::WebDragOperationsMask;
31 using WebKit::WebInputEvent; 31 using WebKit::WebInputEvent;
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 rwhv->SetSize(size); 325 rwhv->SetSize(size);
326 326
327 if (needs_resize) 327 if (needs_resize)
328 SetFloatingPosition(size); 328 SetFloatingPosition(size);
329 } 329 }
330 330
331 void TabContentsViewViews::SetFloatingPosition(const gfx::Size& size) { 331 void TabContentsViewViews::SetFloatingPosition(const gfx::Size& size) {
332 // TODO(anicolao): rework this once we have DOMUI views for dialogs 332 // TODO(anicolao): rework this once we have DOMUI views for dialogs
333 SetBounds(x(), y(), size.width(), size.height()); 333 SetBounds(x(), y(), size.width(), size.height());
334 } 334 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698