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

Side by Side Diff: chrome/browser/ui/views/frame/contents_layout_manager.cc

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/frame/contents_layout_manager.h" 5 #include "chrome/browser/ui/views/frame/contents_layout_manager.h"
6 6
7 #include "ui/views/view.h" 7 #include "ui/views/view.h"
8 8
9 ContentsLayoutManager::ContentsLayoutManager( 9 ContentsLayoutManager::ContentsLayoutManager(
10 views::View* devtools_view, 10 views::View* devtools_view,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // DevTools cares about the specific position, so we have to compensate RTL 61 // DevTools cares about the specific position, so we have to compensate RTL
62 // layout here. 62 // layout here.
63 new_devtools_bounds.set_x(host_->GetMirroredXForRect(new_devtools_bounds)); 63 new_devtools_bounds.set_x(host_->GetMirroredXForRect(new_devtools_bounds));
64 new_contents_bounds.set_x(host_->GetMirroredXForRect(new_contents_bounds)); 64 new_contents_bounds.set_x(host_->GetMirroredXForRect(new_contents_bounds));
65 65
66 devtools_view_->SetBoundsRect(new_devtools_bounds); 66 devtools_view_->SetBoundsRect(new_devtools_bounds);
67 contents_view_->SetBoundsRect(new_contents_bounds); 67 contents_view_->SetBoundsRect(new_contents_bounds);
68 } 68 }
69 69
70 gfx::Size ContentsLayoutManager::GetPreferredSize(views::View* host) { 70 gfx::Size ContentsLayoutManager::GetPreferredSize(
71 const views::View* host) const {
71 return gfx::Size(); 72 return gfx::Size();
72 } 73 }
73 74
74 void ContentsLayoutManager::Installed(views::View* host) { 75 void ContentsLayoutManager::Installed(views::View* host) {
75 DCHECK(!host_); 76 DCHECK(!host_);
76 host_ = host; 77 host_ = host;
77 } 78 }
78 79
79 void ContentsLayoutManager::Uninstalled(views::View* host) { 80 void ContentsLayoutManager::Uninstalled(views::View* host) {
80 DCHECK(host_ == host); 81 DCHECK(host_ == host);
81 host_ = NULL; 82 host_ = NULL;
82 } 83 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/contents_layout_manager.h ('k') | chrome/browser/ui/views/frame/glass_browser_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698