#include "chrome/browser/ui/find_bar/find_tab_helper.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
-#include "content/public/browser/web_contents_view.h"
-#import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h"
+#import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h"
#import "ui/base/cocoa/find_pasteboard.h"
#import "ui/base/cocoa/focus_tracker.h"
// The textbox is empty so we reset.
findTabHelper->StopFinding(FindBarController::kClearSelectionOnPage);
[self updateUIForFindResult:findTabHelper->find_result()
- withText:string16()];
+ withText:base::string16()];
}
}
if (!(focusTracker_.get() &&
[focusTracker_ restoreFocusInWindow:[findBarView_ window]])) {
// Fall back to giving focus to the tab contents.
- findBarBridge_->GetFindBarController()->web_contents()->GetView()->Focus();
+ findBarBridge_->GetFindBarController()->web_contents()->Focus();
}
focusTracker_.reset(nil);
}
- (void)clearResults:(const FindNotificationDetails&)results {
// Just call updateUIForFindResult, which will take care of clearing
// the search text and the results label.
- [self updateUIForFindResult:results withText:string16()];
+ [self updateUIForFindResult:results withText:base::string16()];
}
- (void)updateUIForFindResult:(const FindNotificationDetails&)result
- withText:(const string16&)findText {
+ withText:(const base::string16&)findText {
// If we don't have any results and something was passed in, then
// that means someone pressed Cmd-G while the Find box was
// closed. In that case we need to repopulate the Find box with what
return frame.origin.x;
// Get the size of the container.
- gfx::Rect containerRect(contents->GetView()->GetContainerSize());
+ gfx::Rect containerRect(contents->GetContainerBounds().size());
// Position the FindBar on the top right corner.
viewRect.set_x(