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

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

Issue 7734003: Implement basic theming for panel titlebars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 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 #import "chrome/browser/ui/cocoa/browser_window_utils.h" 10 #import "chrome/browser/ui/cocoa/browser_window_utils.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 bool PanelBrowserWindowCocoa::IsPanelActive() const { 119 bool PanelBrowserWindowCocoa::IsPanelActive() const {
120 NOTIMPLEMENTED(); 120 NOTIMPLEMENTED();
121 return false; 121 return false;
122 } 122 }
123 123
124 gfx::NativeWindow PanelBrowserWindowCocoa::GetNativePanelHandle() { 124 gfx::NativeWindow PanelBrowserWindowCocoa::GetNativePanelHandle() {
125 return [controller_ window]; 125 return [controller_ window];
126 } 126 }
127 127
128 void PanelBrowserWindowCocoa::UpdatePanelTitleBar() { 128 void PanelBrowserWindowCocoa::UpdatePanelTitleBar() {
129 NOTIMPLEMENTED(); 129 if (!is_shown_)
130 return;
131 [controller_ updateTitleBar];
130 } 132 }
131 133
132 void PanelBrowserWindowCocoa::ShowTaskManagerForPanel() { 134 void PanelBrowserWindowCocoa::ShowTaskManagerForPanel() {
133 NOTIMPLEMENTED(); 135 NOTIMPLEMENTED();
134 } 136 }
135 137
136 FindBar* PanelBrowserWindowCocoa::CreatePanelFindBar() { 138 FindBar* PanelBrowserWindowCocoa::CreatePanelFindBar() {
137 DCHECK(!has_find_bar_) << "find bar should only be created once"; 139 DCHECK(!has_find_bar_) << "find bar should only be created once";
138 has_find_bar_ = true; 140 has_find_bar_ = true;
139 141
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 panel_->manager()->Remove(panel_.get()); 197 panel_->manager()->Remove(panel_.get());
196 controller_ = NULL; 198 controller_ = NULL;
197 } 199 }
198 // NativePanelTesting implementation. 200 // NativePanelTesting implementation.
199 201
200 // static 202 // static
201 NativePanelTesting* NativePanelTesting::Create(NativePanel* native_panel) { 203 NativePanelTesting* NativePanelTesting::Create(NativePanel* native_panel) {
202 NOTIMPLEMENTED(); 204 NOTIMPLEMENTED();
203 return NULL; 205 return NULL;
204 } 206 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698