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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_gtk.cc

Issue 7538010: Make BrowserWindow::CreateFindBar non-static so that it can be overridden by Panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove underscore. 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_gtk.h" 5 #include "chrome/browser/ui/panels/panel_browser_window_gtk.h"
6 6
7 #include "chrome/browser/ui/panels/panel.h" 7 #include "chrome/browser/ui/panels/panel.h"
8 #include "chrome/browser/ui/panels/panel_manager.h" 8 #include "chrome/browser/ui/panels/panel_manager.h"
9 #include "ui/base/dragdrop/gtk_dnd_util.h" 9 #include "ui/base/dragdrop/gtk_dnd_util.h"
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 } 149 }
150 150
151 void PanelBrowserWindowGtk::UpdatePanelTitleBar() { 151 void PanelBrowserWindowGtk::UpdatePanelTitleBar() {
152 UpdateTitleBar(); 152 UpdateTitleBar();
153 } 153 }
154 154
155 void PanelBrowserWindowGtk::ShowTaskManagerForPanel() { 155 void PanelBrowserWindowGtk::ShowTaskManagerForPanel() {
156 ShowTaskManager(); 156 ShowTaskManager();
157 } 157 }
158 158
159 FindBar* PanelBrowserWindowGtk::CreatePanelFindBar() {
160 return CreateFindBar();
161 }
162
159 void PanelBrowserWindowGtk::NotifyPanelOnUserChangedTheme() { 163 void PanelBrowserWindowGtk::NotifyPanelOnUserChangedTheme() {
160 UserChangedTheme(); 164 UserChangedTheme();
161 } 165 }
162 166
163 void PanelBrowserWindowGtk::DrawAttention() { 167 void PanelBrowserWindowGtk::DrawAttention() {
164 NOTIMPLEMENTED(); 168 NOTIMPLEMENTED();
165 } 169 }
166 170
167 bool PanelBrowserWindowGtk::IsDrawingAttention() const { 171 bool PanelBrowserWindowGtk::IsDrawingAttention() const {
168 NOTIMPLEMENTED(); 172 NOTIMPLEMENTED();
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // if the user ended the drag with space or enter, we don't get a follow up 308 // if the user ended the drag with space or enter, we don't get a follow up
305 // event to tell us the drag has finished (either a drag-failed or a 309 // event to tell us the drag has finished (either a drag-failed or a
306 // drag-end). We post a task, instead of calling EndDrag right here, to give 310 // drag-end). We post a task, instead of calling EndDrag right here, to give
307 // GTK+ a chance to send the drag-failed event with the right status. If 311 // GTK+ a chance to send the drag-failed event with the right status. If
308 // GTK+ does send the drag-failed event, we cancel the task. 312 // GTK+ does send the drag-failed event, we cancel the task.
309 MessageLoop::current()->PostTask(FROM_HERE, 313 MessageLoop::current()->PostTask(FROM_HERE,
310 drag_end_factory_.NewRunnableMethod( 314 drag_end_factory_.NewRunnableMethod(
311 &PanelBrowserWindowGtk::EndDrag, false)); 315 &PanelBrowserWindowGtk::EndDrag, false));
312 return TRUE; 316 return TRUE;
313 } 317 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698