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

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

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_CONTENTS_LAYOUT_MANAGER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_LAYOUT_MANAGER_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_LAYOUT_MANAGER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_LAYOUT_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/devtools/devtools_contents_resizing_strategy.h" 10 #include "chrome/browser/devtools/devtools_contents_resizing_strategy.h"
11 #include "ui/views/layout/layout_manager.h" 11 #include "ui/views/layout/layout_manager.h"
12 12
13 // ContentsLayoutManager positions the WebContents and devtools WebContents. 13 // ContentsLayoutManager positions the WebContents and devtools WebContents.
14 class ContentsLayoutManager : public views::LayoutManager { 14 class ContentsLayoutManager : public views::LayoutManager {
15 public: 15 public:
16 ContentsLayoutManager(views::View* devtools_view, views::View* contents_view); 16 ContentsLayoutManager(views::View* devtools_view, views::View* contents_view);
17 virtual ~ContentsLayoutManager(); 17 virtual ~ContentsLayoutManager();
18 18
19 // Sets the active top margin; both devtools_view and contents_view will be 19 // Sets the active top margin; both devtools_view and contents_view will be
20 // pushed down vertically by |margin|. 20 // pushed down vertically by |margin|.
21 void SetActiveTopMargin(int margin); 21 void SetActiveTopMargin(int margin);
22 22
23 // Sets the contents resizing strategy. 23 // Sets the contents resizing strategy.
24 void SetContentsResizingStrategy( 24 void SetContentsResizingStrategy(
25 const DevToolsContentsResizingStrategy& strategy); 25 const DevToolsContentsResizingStrategy& strategy);
26 26
27 // views::LayoutManager overrides: 27 // views::LayoutManager overrides:
28 virtual void Layout(views::View* host) OVERRIDE; 28 virtual void Layout(views::View* host) override;
29 virtual gfx::Size GetPreferredSize(const views::View* host) const OVERRIDE; 29 virtual gfx::Size GetPreferredSize(const views::View* host) const override;
30 virtual void Installed(views::View* host) OVERRIDE; 30 virtual void Installed(views::View* host) override;
31 virtual void Uninstalled(views::View* host) OVERRIDE; 31 virtual void Uninstalled(views::View* host) override;
32 32
33 private: 33 private:
34 views::View* devtools_view_; 34 views::View* devtools_view_;
35 views::View* contents_view_; 35 views::View* contents_view_;
36 36
37 views::View* host_; 37 views::View* host_;
38 38
39 DevToolsContentsResizingStrategy strategy_; 39 DevToolsContentsResizingStrategy strategy_;
40 int active_top_margin_; 40 int active_top_margin_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(ContentsLayoutManager); 42 DISALLOW_COPY_AND_ASSIGN(ContentsLayoutManager);
43 }; 43 };
44 44
45 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_LAYOUT_MANAGER_H_ 45 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_LAYOUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698