OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |