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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_cocoa.mm

Issue 7633034: Use Titlebar instead of TitleBar consistently in panels code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/panels/panel_browser_window_cocoa.h" 5 #include "chrome/browser/ui/panels/panel_browser_window_cocoa.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h" 9 #include "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h"
10 #include "chrome/browser/ui/panels/panel.h" 10 #include "chrome/browser/ui/panels/panel.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 bounds_ = bounds; 84 bounds_ = bounds;
85 NSRect frame = ConvertCoordinatesToCocoa(bounds); 85 NSRect frame = ConvertCoordinatesToCocoa(bounds);
86 [[controller_ window] setFrame:frame display:YES animate:YES]; 86 [[controller_ window] setFrame:frame display:YES animate:YES];
87 } 87 }
88 88
89 void PanelBrowserWindowCocoa::OnPanelExpansionStateChanged( 89 void PanelBrowserWindowCocoa::OnPanelExpansionStateChanged(
90 Panel::ExpansionState expansion_state) { 90 Panel::ExpansionState expansion_state) {
91 NOTIMPLEMENTED(); 91 NOTIMPLEMENTED();
92 } 92 }
93 93
94 bool PanelBrowserWindowCocoa::ShouldBringUpPanelTitleBar(int mouse_x, 94 bool PanelBrowserWindowCocoa::ShouldBringUpPanelTitlebar(int mouse_x,
95 int mouse_y) const { 95 int mouse_y) const {
96 NOTIMPLEMENTED(); 96 NOTIMPLEMENTED();
97 return false; 97 return false;
98 } 98 }
99 99
100 void PanelBrowserWindowCocoa::ClosePanel() { 100 void PanelBrowserWindowCocoa::ClosePanel() {
101 if (isClosed()) 101 if (isClosed())
102 return; 102 return;
103 103
104 NSWindow* window = [controller_ window]; 104 NSWindow* window = [controller_ window];
(...skipping 16 matching lines...) Expand all
121 121
122 bool PanelBrowserWindowCocoa::IsPanelActive() const { 122 bool PanelBrowserWindowCocoa::IsPanelActive() const {
123 NOTIMPLEMENTED(); 123 NOTIMPLEMENTED();
124 return false; 124 return false;
125 } 125 }
126 126
127 gfx::NativeWindow PanelBrowserWindowCocoa::GetNativePanelHandle() { 127 gfx::NativeWindow PanelBrowserWindowCocoa::GetNativePanelHandle() {
128 return [controller_ window]; 128 return [controller_ window];
129 } 129 }
130 130
131 void PanelBrowserWindowCocoa::UpdatePanelTitleBar() { 131 void PanelBrowserWindowCocoa::UpdatePanelTitlebar() {
jianli 2011/08/12 21:34:51 ditto.
prasadt 2011/08/12 21:59:30 Done.
132 NOTIMPLEMENTED(); 132 NOTIMPLEMENTED();
133 } 133 }
134 134
135 void PanelBrowserWindowCocoa::ShowTaskManagerForPanel() { 135 void PanelBrowserWindowCocoa::ShowTaskManagerForPanel() {
136 NOTIMPLEMENTED(); 136 NOTIMPLEMENTED();
137 } 137 }
138 138
139 FindBar* PanelBrowserWindowCocoa::CreatePanelFindBar() { 139 FindBar* PanelBrowserWindowCocoa::CreatePanelFindBar() {
140 DCHECK(!has_find_bar_) << "find bar should only be created once"; 140 DCHECK(!has_find_bar_) << "find bar should only be created once";
141 has_find_bar_ = true; 141 has_find_bar_ = true;
(...skipping 25 matching lines...) Expand all
167 controller_ = NULL; 167 controller_ = NULL;
168 } 168 }
169 169
170 // NativePanelTesting implementation. 170 // NativePanelTesting implementation.
171 171
172 // static 172 // static
173 NativePanelTesting* NativePanelTesting::Create(NativePanel* native_panel) { 173 NativePanelTesting* NativePanelTesting::Create(NativePanel* native_panel) {
174 NOTIMPLEMENTED(); 174 NOTIMPLEMENTED();
175 return NULL; 175 return NULL;
176 } 176 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698