OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/views/find_bar_view.h" | 5 #include "chrome/browser/views/find_bar_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "chrome/app/theme/theme_resources.h" | 10 #include "grit/theme_resources.h" |
11 #include "chrome/browser/views/find_bar_win.h" | 11 #include "chrome/browser/views/find_bar_win.h" |
12 #include "chrome/browser/view_ids.h" | 12 #include "chrome/browser/view_ids.h" |
13 #include "chrome/common/l10n_util.h" | 13 #include "chrome/common/l10n_util.h" |
14 #include "chrome/common/gfx/chrome_canvas.h" | 14 #include "chrome/common/gfx/chrome_canvas.h" |
15 #include "chrome/common/resource_bundle.h" | 15 #include "chrome/common/resource_bundle.h" |
16 #include "chrome/views/background.h" | 16 #include "chrome/views/background.h" |
17 #include "chrome/views/label.h" | 17 #include "chrome/views/label.h" |
18 #include "skia/include/SkGradientShader.h" | 18 #include "skia/include/SkGradientShader.h" |
19 | 19 |
20 #include "generated_resources.h" | 20 #include "generated_resources.h" |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 | 486 |
487 bool FindBarView::FocusForwarderView::OnMousePressed( | 487 bool FindBarView::FocusForwarderView::OnMousePressed( |
488 const views::MouseEvent& event) { | 488 const views::MouseEvent& event) { |
489 if (view_to_focus_on_mousedown_) { | 489 if (view_to_focus_on_mousedown_) { |
490 view_to_focus_on_mousedown_->ClearSelection(); | 490 view_to_focus_on_mousedown_->ClearSelection(); |
491 view_to_focus_on_mousedown_->RequestFocus(); | 491 view_to_focus_on_mousedown_->RequestFocus(); |
492 } | 492 } |
493 return true; | 493 return true; |
494 } | 494 } |
495 | 495 |
OLD | NEW |