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

Unified Diff: chrome/browser/ui/views/frame/contents_container.cc

Issue 63173016: DevTools: place DevTools WebContents underneath inspected WebContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/contents_container.cc
diff --git a/chrome/browser/ui/views/frame/contents_container.cc b/chrome/browser/ui/views/frame/contents_container.cc
deleted file mode 100644
index 9461aa99b2408bca73bd0eaadc0c5119e72f5f61..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/frame/contents_container.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/views/frame/contents_container.h"
-
-ContentsContainer::ContentsContainer(views::View* active_web_view)
- : active_web_view_(active_web_view),
- active_top_margin_(0) {
- AddChildView(active_web_view_);
-}
-
-ContentsContainer::~ContentsContainer() {
-}
-
-bool ContentsContainer::SetActiveTopMargin(int margin) {
- if (active_top_margin_ == margin)
- return false;
-
- active_top_margin_ = margin;
- // Make sure we layout next time around. We need this in case our bounds
- // haven't changed.
- InvalidateLayout();
- return true;
-}
-
-void ContentsContainer::Layout() {
- int content_y = active_top_margin_;
- int content_height = std::max(0, height() - content_y);
-
- active_web_view_->SetBounds(0, content_y, width(), content_height);
-
- // Need to invoke views::View in case any views whose bounds didn't change
- // still need a layout.
- views::View::Layout();
-}
-
-const char* ContentsContainer::GetClassName() const {
- return "ContentsContainer";
-}
« no previous file with comments | « chrome/browser/ui/views/frame/contents_container.h ('k') | chrome/browser/ui/views/frame/contents_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698