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

Unified Diff: chrome/browser/chromeos/input_method/hidable_area.cc

Issue 121163003: Cleanup CandidateWindowView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 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
« no previous file with comments | « chrome/browser/chromeos/input_method/hidable_area.h ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/input_method/hidable_area.cc
diff --git a/chrome/browser/chromeos/input_method/hidable_area.cc b/chrome/browser/chromeos/input_method/hidable_area.cc
deleted file mode 100644
index 9c396c7d6768119b2fcf048dd4ed0c9635d24bbb..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/input_method/hidable_area.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 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/chromeos/input_method/hidable_area.h"
-
-#include "ui/views/layout/fill_layout.h"
-
-namespace chromeos {
-namespace input_method {
-
-HidableArea::HidableArea() {
- place_holder_.reset(new views::View);
- place_holder_->set_owned_by_client(); // Won't own
-
- // Initially show nothing.
- SetLayoutManager(new views::FillLayout);
- AddChildView(place_holder_.get());
-}
-
-HidableArea::~HidableArea() {
-}
-
-void HidableArea::SetContents(views::View* contents) {
- contents_.reset(contents);
- contents_->set_owned_by_client(); // Won't own
-}
-
-void HidableArea::Show() {
- if (contents_.get() && contents_->parent() != this) {
- RemoveAllChildViews(false); // Don't delete child views.
- AddChildView(contents_.get());
- }
-}
-
-void HidableArea::Hide() {
- if (IsShown()) {
- RemoveAllChildViews(false); // Don't delete child views.
- AddChildView(place_holder_.get());
- }
-}
-
-bool HidableArea::IsShown() const {
- return contents_.get() && contents_->parent() == this;
-}
-
-} // namespace input_method
-} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/input_method/hidable_area.h ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698