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

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

Issue 2833363002: Add GetCaptionButtonHeightInDIPs() method (Closed)
Patch Set: Created 3 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
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_DESKTOP_BROWSER_FRAME_AURA_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURA_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURA_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURA_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 29 matching lines...) Expand all
40 40
41 // Overridden from views::DesktopNativeWidgetAura: 41 // Overridden from views::DesktopNativeWidgetAura:
42 void OnHostClosed() override; 42 void OnHostClosed() override;
43 void InitNativeWidget(const views::Widget::InitParams& params) override; 43 void InitNativeWidget(const views::Widget::InitParams& params) override;
44 44
45 // Overridden from NativeBrowserFrame: 45 // Overridden from NativeBrowserFrame:
46 views::Widget::InitParams GetWidgetParams() override; 46 views::Widget::InitParams GetWidgetParams() override;
47 bool UseCustomFrame() const override; 47 bool UseCustomFrame() const override;
48 bool UsesNativeSystemMenu() const override; 48 bool UsesNativeSystemMenu() const override;
49 int GetMinimizeButtonOffset() const override; 49 int GetMinimizeButtonOffset() const override;
50 int GetMinimizeButtonHeight() const override;
50 bool ShouldSaveWindowPlacement() const override; 51 bool ShouldSaveWindowPlacement() const override;
51 void GetWindowPlacement(gfx::Rect* bounds, 52 void GetWindowPlacement(gfx::Rect* bounds,
52 ui::WindowShowState* show_state) const override; 53 ui::WindowShowState* show_state) const override;
53 bool PreHandleKeyboardEvent( 54 bool PreHandleKeyboardEvent(
54 const content::NativeWebKeyboardEvent& event) override; 55 const content::NativeWebKeyboardEvent& event) override;
55 bool HandleKeyboardEvent( 56 bool HandleKeyboardEvent(
56 const content::NativeWebKeyboardEvent& event) override; 57 const content::NativeWebKeyboardEvent& event) override;
57 58
58 private: 59 private:
59 // The BrowserView is our ClientView. This is a pointer to it. 60 // The BrowserView is our ClientView. This is a pointer to it.
60 BrowserView* browser_view_; 61 BrowserView* browser_view_;
61 BrowserFrame* browser_frame_; 62 BrowserFrame* browser_frame_;
62 63
63 // Owned by the RootWindow. 64 // Owned by the RootWindow.
64 BrowserDesktopWindowTreeHost* browser_desktop_window_tree_host_; 65 BrowserDesktopWindowTreeHost* browser_desktop_window_tree_host_;
65 66
66 std::unique_ptr<wm::VisibilityController> visibility_controller_; 67 std::unique_ptr<wm::VisibilityController> visibility_controller_;
67 68
68 DISALLOW_COPY_AND_ASSIGN(DesktopBrowserFrameAura); 69 DISALLOW_COPY_AND_ASSIGN(DesktopBrowserFrameAura);
69 }; 70 };
70 71
71 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURA_H_ 72 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698