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

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

Issue 2015223002: MacViews: Fixed BrowserViewTest.CloseWithTabsStartWithActive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove DestroyBrowserWebContents. Created 4 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_frame_ash.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_FRAME_ASH_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 13 matching lines...) Expand all
24 public NativeBrowserFrame { 24 public NativeBrowserFrame {
25 public: 25 public:
26 static const char kWindowName[]; 26 static const char kWindowName[];
27 27
28 BrowserFrameAsh(BrowserFrame* browser_frame, BrowserView* browser_view); 28 BrowserFrameAsh(BrowserFrame* browser_frame, BrowserView* browser_view);
29 29
30 BrowserView* browser_view() const { return browser_view_; } 30 BrowserView* browser_view() const { return browser_view_; }
31 31
32 protected: 32 protected:
33 // Overridden from views::NativeWidgetAura: 33 // Overridden from views::NativeWidgetAura:
34 void OnWindowDestroying(aura::Window* window) override;
35 void OnWindowTargetVisibilityChanged(bool visible) override; 34 void OnWindowTargetVisibilityChanged(bool visible) override;
36 35
37 // Overridden from NativeBrowserFrame: 36 // Overridden from NativeBrowserFrame:
38 views::Widget::InitParams GetWidgetParams() override; 37 views::Widget::InitParams GetWidgetParams() override;
39 bool UseCustomFrame() const override; 38 bool UseCustomFrame() const override;
40 bool UsesNativeSystemMenu() const override; 39 bool UsesNativeSystemMenu() const override;
41 int GetMinimizeButtonOffset() const override; 40 int GetMinimizeButtonOffset() const override;
42 bool ShouldSaveWindowPlacement() const override; 41 bool ShouldSaveWindowPlacement() const override;
43 void GetWindowPlacement(gfx::Rect* bounds, 42 void GetWindowPlacement(gfx::Rect* bounds,
44 ui::WindowShowState* show_state) const override; 43 ui::WindowShowState* show_state) const override;
45 44
46 ~BrowserFrameAsh() override; 45 ~BrowserFrameAsh() override;
47 46
48 private: 47 private:
49 class WindowPropertyWatcher; 48 class WindowPropertyWatcher;
50 49
51 // Set the window into the auto managed mode. 50 // Set the window into the auto managed mode.
52 void SetWindowAutoManaged(); 51 void SetWindowAutoManaged();
53 52
54 // The BrowserView is our ClientView. This is a pointer to it. 53 // The BrowserView is our ClientView. This is a pointer to it.
55 BrowserView* browser_view_; 54 BrowserView* browser_view_;
56 55
57 DISALLOW_COPY_AND_ASSIGN(BrowserFrameAsh); 56 DISALLOW_COPY_AND_ASSIGN(BrowserFrameAsh);
58 }; 57 };
59 58
60 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_H_ 59 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_frame_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698