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 26 matching lines...) Expand all Loading... |
37 const string16& find_text) { | 37 const string16& find_text) { |
38 [cocoa_controller_ updateUIForFindResult:result withText:find_text]; | 38 [cocoa_controller_ updateUIForFindResult:result withText:find_text]; |
39 } | 39 } |
40 | 40 |
41 bool FindBarBridge::IsFindBarVisible() { | 41 bool FindBarBridge::IsFindBarVisible() { |
42 return [cocoa_controller_ isFindBarVisible] ? true : false; | 42 return [cocoa_controller_ isFindBarVisible] ? true : false; |
43 } | 43 } |
44 | 44 |
45 void FindBarBridge::MoveWindowIfNecessary(const gfx::Rect& selection_rect, | 45 void FindBarBridge::MoveWindowIfNecessary(const gfx::Rect& selection_rect, |
46 bool no_redraw) { | 46 bool no_redraw) { |
47 NOTIMPLEMENTED(); | 47 // http://crbug.com/11084 |
48 } | 48 } |
49 | 49 |
50 void FindBarBridge::StopAnimation() { | 50 void FindBarBridge::StopAnimation() { |
51 NOTIMPLEMENTED(); | 51 NOTIMPLEMENTED(); |
52 } | 52 } |
53 | 53 |
54 gfx::Rect FindBarBridge::GetDialogPosition(gfx::Rect avoid_overlapping_rect) { | 54 gfx::Rect FindBarBridge::GetDialogPosition(gfx::Rect avoid_overlapping_rect) { |
55 NOTIMPLEMENTED(); | 55 NOTIMPLEMENTED(); |
56 return gfx::Rect(); | 56 return gfx::Rect(); |
57 } | 57 } |
58 | 58 |
59 void FindBarBridge::SetDialogPosition(const gfx::Rect& new_pos, | 59 void FindBarBridge::SetDialogPosition(const gfx::Rect& new_pos, |
60 bool no_redraw) { | 60 bool no_redraw) { |
61 // TODO(rohitrao): Do something useful here. For now, just show the findbar. | 61 // TODO(rohitrao): Do something useful here. For now, just show the findbar. |
62 NOTIMPLEMENTED(); | 62 NOTIMPLEMENTED(); |
63 Show(); | 63 Show(); |
64 } | 64 } |
65 | 65 |
66 void FindBarBridge::RestoreSavedFocus() { | 66 void FindBarBridge::RestoreSavedFocus() { |
67 NOTIMPLEMENTED(); | 67 NOTIMPLEMENTED(); |
68 } | 68 } |
OLD | NEW |