| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #import "chrome/browser/cocoa/find_bar_bridge.h" | 5 #import "chrome/browser/cocoa/find_bar_bridge.h" |
| 6 #import "chrome/browser/cocoa/find_bar_cocoa_controller.h" | 6 #import "chrome/browser/cocoa/find_bar_cocoa_controller.h" |
| 7 | 7 |
| 8 FindBarBridge::FindBarBridge() { | 8 FindBarBridge::FindBarBridge() { |
| 9 cocoa_controller_.reset([[FindBarCocoaController alloc] init]); | 9 cocoa_controller_.reset([[FindBarCocoaController alloc] init]); |
| 10 [cocoa_controller_ setFindBarBridge:this]; | 10 [cocoa_controller_ setFindBarBridge:this]; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 return gfx::Rect(); | 60 return gfx::Rect(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 void FindBarBridge::SetDialogPosition(const gfx::Rect& new_pos, | 63 void FindBarBridge::SetDialogPosition(const gfx::Rect& new_pos, |
| 64 bool no_redraw) { | 64 bool no_redraw) { |
| 65 // TODO(rohitrao): Do something useful here. For now, just show the findbar. | 65 // TODO(rohitrao): Do something useful here. For now, just show the findbar. |
| 66 Show(); | 66 Show(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void FindBarBridge::RestoreSavedFocus() { | 69 void FindBarBridge::RestoreSavedFocus() { |
| 70 // http://crbug.com/12657 | 70 [cocoa_controller_ restoreSavedFocus]; |
| 71 } | 71 } |
| OLD | NEW |