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

Side by Side Diff: chrome/browser/ui/views/frame/top_container_view.h

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Sync with ToT Created 3 years, 4 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
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 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_TOP_CONTAINER_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_TOP_CONTAINER_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_TOP_CONTAINER_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_TOP_CONTAINER_VIEW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
11 11
12 class BrowserView; 12 class BrowserView;
13 13
14 // Container for the BrowserView's tab strip, toolbar, and sometimes bookmark 14 // Container for the BrowserView's tab strip, toolbar, and sometimes bookmark
15 // bar. In Chrome OS immersive fullscreen it stacks on top of other views in 15 // bar. In Chrome OS immersive fullscreen it stacks on top of other views in
16 // order to slide in and out over the web contents. 16 // order to slide in and out over the web contents.
17 class TopContainerView : public views::View { 17 class TopContainerView : public views::View {
18 public: 18 public:
19 explicit TopContainerView(BrowserView* browser_view); 19 explicit TopContainerView(BrowserView* browser_view);
20 ~TopContainerView() override; 20 ~TopContainerView() override;
21 21
22 // views::View overrides: 22 // views::View overrides:
23 const char* GetClassName() const override; 23 const char* GetClassName() const override;
24 void PaintChildren(const ui::PaintContext& context) override; 24 void PaintChildren(const views::PaintInfo& paint_info) override;
25 void ChildPreferredSizeChanged(views::View* child) override; 25 void ChildPreferredSizeChanged(views::View* child) override;
26 26
27 private: 27 private:
28 // The parent of this view. Not owned. 28 // The parent of this view. Not owned.
29 BrowserView* browser_view_; 29 BrowserView* browser_view_;
30 30
31 DISALLOW_COPY_AND_ASSIGN(TopContainerView); 31 DISALLOW_COPY_AND_ASSIGN(TopContainerView);
32 }; 32 };
33 33
34 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_TOP_CONTAINER_VIEW_H_ 34 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_TOP_CONTAINER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/frame/top_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698