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

Side by Side Diff: chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.h

Issue 10020048: Work on USE_ASH/USE_AURA split. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_BROWSER_NON_CLIENT_FRAME_VIEW_AURA_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_AURA_H_ 6 #define CHROME_BROWSER_UI_VIEWS_ASH_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" 10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
11 #include "chrome/browser/ui/views/tab_icon_view.h" 11 #include "chrome/browser/ui/views/tab_icon_view.h"
12 #include "ui/views/controls/button/button.h" // ButtonListener 12 #include "ui/views/controls/button/button.h" // ButtonListener
13 13
14 namespace ash { 14 namespace ash {
15 class FramePainter; 15 class FramePainter;
16 } 16 }
17 namespace views { 17 namespace views {
18 class ImageButton; 18 class ImageButton;
19 } 19 }
20 20
21 class BrowserNonClientFrameViewAura : public BrowserNonClientFrameView, 21 class BrowserNonClientFrameViewAsh : public BrowserNonClientFrameView,
22 public views::ButtonListener, 22 public views::ButtonListener,
23 public TabIconView::TabIconViewModel { 23 public TabIconView::TabIconViewModel {
24 public: 24 public:
25 BrowserNonClientFrameViewAura(BrowserFrame* frame, BrowserView* browser_view); 25 BrowserNonClientFrameViewAsh(BrowserFrame* frame, BrowserView* browser_view);
26 virtual ~BrowserNonClientFrameViewAura(); 26 virtual ~BrowserNonClientFrameViewAsh();
27 27
28 void Init(); 28 void Init();
29 29
30 // BrowserNonClientFrameView overrides: 30 // BrowserNonClientFrameView overrides:
31 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; 31 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE;
32 virtual int GetHorizontalTabStripVerticalOffset( 32 virtual int GetHorizontalTabStripVerticalOffset(
33 bool force_restored) const OVERRIDE; 33 bool force_restored) const OVERRIDE;
34 virtual void UpdateThrobber(bool running) OVERRIDE; 34 virtual void UpdateThrobber(bool running) OVERRIDE;
35 35
36 // views::NonClientFrameView overrides: 36 // views::NonClientFrameView overrides:
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // For popups, the window icon. 85 // For popups, the window icon.
86 TabIconView* window_icon_; 86 TabIconView* window_icon_;
87 87
88 // Painter for the frame header. 88 // Painter for the frame header.
89 scoped_ptr<ash::FramePainter> frame_painter_; 89 scoped_ptr<ash::FramePainter> frame_painter_;
90 90
91 // If true the |size_button_| minimizes, otherwise it toggles between 91 // If true the |size_button_| minimizes, otherwise it toggles between
92 // maximized and restored. 92 // maximized and restored.
93 bool size_button_minimizes_; 93 bool size_button_minimizes_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAura); 95 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh);
96 }; 96 };
97 97
98 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_AURA_H_ 98 #endif // CHROME_BROWSER_UI_VIEWS_ASH_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698