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

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

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 #include "chrome/browser/ui/views/frame/desktop_browser_frame_aura.h" 5 #include "chrome/browser/ui/views/frame/desktop_browser_frame_aura.h"
6 6
7 #include "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/ui/views/frame/browser_desktop_window_tree_host.h" 8 #include "chrome/browser/ui/views/frame/browser_desktop_window_tree_host.h"
9 #include "chrome/browser/ui/views/frame/browser_view.h" 9 #include "chrome/browser/ui/views/frame/browser_view.h"
10 #include "chrome/browser/web_applications/web_app.h" 10 #include "chrome/browser/web_applications/web_app.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 83
84 bool DesktopBrowserFrameAura::UsesNativeSystemMenu() const { 84 bool DesktopBrowserFrameAura::UsesNativeSystemMenu() const {
85 return browser_desktop_window_tree_host_->UsesNativeSystemMenu(); 85 return browser_desktop_window_tree_host_->UsesNativeSystemMenu();
86 } 86 }
87 87
88 int DesktopBrowserFrameAura::GetMinimizeButtonOffset() const { 88 int DesktopBrowserFrameAura::GetMinimizeButtonOffset() const {
89 return browser_desktop_window_tree_host_->GetMinimizeButtonOffset(); 89 return browser_desktop_window_tree_host_->GetMinimizeButtonOffset();
90 } 90 }
91 91
92 int DesktopBrowserFrameAura::GetMinimizeButtonHeight() const {
93 return browser_desktop_window_tree_host_->GetMinimizeButtonHeight();
94 }
95
92 bool DesktopBrowserFrameAura::ShouldSaveWindowPlacement() const { 96 bool DesktopBrowserFrameAura::ShouldSaveWindowPlacement() const {
93 // The placement can always be stored. 97 // The placement can always be stored.
94 return true; 98 return true;
95 } 99 }
96 100
97 void DesktopBrowserFrameAura::GetWindowPlacement( 101 void DesktopBrowserFrameAura::GetWindowPlacement(
98 gfx::Rect* bounds, 102 gfx::Rect* bounds,
99 ui::WindowShowState* show_state) const { 103 ui::WindowShowState* show_state) const {
100 *bounds = GetWidget()->GetRestoredBounds(); 104 *bounds = GetWidget()->GetRestoredBounds();
101 if (IsMaximized()) 105 if (IsMaximized())
102 *show_state = ui::SHOW_STATE_MAXIMIZED; 106 *show_state = ui::SHOW_STATE_MAXIMIZED;
103 else if (IsMinimized()) 107 else if (IsMinimized())
104 *show_state = ui::SHOW_STATE_MINIMIZED; 108 *show_state = ui::SHOW_STATE_MINIMIZED;
105 else 109 else
106 *show_state = ui::SHOW_STATE_NORMAL; 110 *show_state = ui::SHOW_STATE_NORMAL;
107 } 111 }
108 112
109 bool DesktopBrowserFrameAura::PreHandleKeyboardEvent( 113 bool DesktopBrowserFrameAura::PreHandleKeyboardEvent(
110 const content::NativeWebKeyboardEvent& event) { 114 const content::NativeWebKeyboardEvent& event) {
111 return false; 115 return false;
112 } 116 }
113 117
114 bool DesktopBrowserFrameAura::HandleKeyboardEvent( 118 bool DesktopBrowserFrameAura::HandleKeyboardEvent(
115 const content::NativeWebKeyboardEvent& event) { 119 const content::NativeWebKeyboardEvent& event) {
116 return false; 120 return false;
117 } 121 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698