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_view.h" | 5 #include "chrome/browser/ui/panels/panel_browser_view.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/ui/panels/panel.h" | 8 #include "chrome/browser/ui/panels/panel.h" |
9 #include "chrome/browser/ui/panels/panel_browser_frame_view.h" | 9 #include "chrome/browser/ui/panels/panel_browser_frame_view.h" |
10 #include "chrome/browser/ui/panels/panel_manager.h" | 10 #include "chrome/browser/ui/panels/panel_manager.h" |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 } | 248 } |
249 | 249 |
250 void PanelBrowserView::UpdatePanelTitleBar() { | 250 void PanelBrowserView::UpdatePanelTitleBar() { |
251 UpdateTitleBar(); | 251 UpdateTitleBar(); |
252 } | 252 } |
253 | 253 |
254 void PanelBrowserView::ShowTaskManagerForPanel() { | 254 void PanelBrowserView::ShowTaskManagerForPanel() { |
255 ShowTaskManager(); | 255 ShowTaskManager(); |
256 } | 256 } |
257 | 257 |
| 258 FindBar* PanelBrowserView::CreatePanelFindBar() { |
| 259 return CreateFindBar(); |
| 260 } |
| 261 |
258 void PanelBrowserView::NotifyPanelOnUserChangedTheme() { | 262 void PanelBrowserView::NotifyPanelOnUserChangedTheme() { |
259 UserChangedTheme(); | 263 UserChangedTheme(); |
260 } | 264 } |
261 | 265 |
262 void PanelBrowserView::DrawAttention() { | 266 void PanelBrowserView::DrawAttention() { |
263 // Don't draw attention for active panel. | 267 // Don't draw attention for active panel. |
264 if (is_drawing_attention_ || focused_) | 268 if (is_drawing_attention_ || focused_) |
265 return; | 269 return; |
266 is_drawing_attention_ = true; | 270 is_drawing_attention_ = true; |
267 | 271 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 if (!mouse_pressed_) | 370 if (!mouse_pressed_) |
367 return false; | 371 return false; |
368 mouse_pressed_ = false; | 372 mouse_pressed_ = false; |
369 | 373 |
370 if (!mouse_dragging_) | 374 if (!mouse_dragging_) |
371 cancelled = true; | 375 cancelled = true; |
372 mouse_dragging_ = false; | 376 mouse_dragging_ = false; |
373 panel_->manager()->EndDragging(cancelled); | 377 panel_->manager()->EndDragging(cancelled); |
374 return true; | 378 return true; |
375 } | 379 } |
OLD | NEW |