1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_HIDABLE_AREA_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_HIDABLE_AREA_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "ui/views/widget/widget.h"
12 namespace input_method
{
14 // HidableArea is used as an area to place optional information that can be
15 // turned displaying off if it is unnecessary.
16 class HidableArea
: public views::View
{
19 virtual ~HidableArea();
21 // Sets the content view.
22 void SetContents(views::View
* contents
);
30 // Returns whether the content is already set and shown.
33 // Returns the content.
34 views::View
* contents() {
35 return contents_
.get();
39 scoped_ptr
<views::View
> contents_
;
40 scoped_ptr
<views::View
> place_holder_
;
42 DISALLOW_COPY_AND_ASSIGN(HidableArea
);
45 } // namespace input_method
46 } // namespace chromeos
48 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_HIDABLE_AREA_H_