OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/instant/instant_loader.h" | 5 #include "chrome/browser/instant/instant_loader.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) {} | 229 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) {} |
230 virtual void URLStarredChanged(TabContents* source, bool starred) {} | 230 virtual void URLStarredChanged(TabContents* source, bool starred) {} |
231 virtual void UpdateTargetURL(TabContents* source, const GURL& url) {} | 231 virtual void UpdateTargetURL(TabContents* source, const GURL& url) {} |
232 virtual void ContentsMouseEvent( | 232 virtual void ContentsMouseEvent( |
233 TabContents* source, const gfx::Point& location, bool motion) {} | 233 TabContents* source, const gfx::Point& location, bool motion) {} |
234 virtual void ContentsZoomChange(bool zoom_in) {} | 234 virtual void ContentsZoomChange(bool zoom_in) {} |
235 virtual void OnContentSettingsChange(TabContents* source) {} | 235 virtual void OnContentSettingsChange(TabContents* source) {} |
236 virtual bool IsApplication() const { return false; } | 236 virtual bool IsApplication() const { return false; } |
237 virtual void ConvertContentsToApplication(TabContents* source) {} | 237 virtual void ConvertContentsToApplication(TabContents* source) {} |
238 virtual bool CanReloadContents(TabContents* source) const { return true; } | 238 virtual bool CanReloadContents(TabContents* source) const { return true; } |
239 virtual gfx::Rect GetRootWindowResizerRect() const { | |
240 return gfx::Rect(); | |
241 } | |
242 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate, | 239 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate, |
243 gfx::NativeWindow parent_window) {} | 240 gfx::NativeWindow parent_window) {} |
244 virtual void BeforeUnloadFired(TabContents* tab, | 241 virtual void BeforeUnloadFired(TabContents* tab, |
245 bool proceed, | 242 bool proceed, |
246 bool* proceed_to_fire_unload) {} | 243 bool* proceed_to_fire_unload) {} |
247 virtual void ForwardMessageToExternalHost(const std::string& message, | 244 virtual void ForwardMessageToExternalHost(const std::string& message, |
248 const std::string& origin, | 245 const std::string& origin, |
249 const std::string& target) {} | 246 const std::string& target) {} |
250 virtual bool IsExternalTabContainer() const { return false; } | 247 virtual bool IsExternalTabContainer() const { return false; } |
251 virtual void SetFocusToLocationBar(bool select_all) {} | 248 virtual void SetFocusToLocationBar(bool select_all) {} |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 if (last_omnibox_bounds_ == omnibox_bounds_) | 656 if (last_omnibox_bounds_ == omnibox_bounds_) |
660 return; | 657 return; |
661 | 658 |
662 last_omnibox_bounds_ = omnibox_bounds_; | 659 last_omnibox_bounds_ = omnibox_bounds_; |
663 if (preview_contents_.get() && is_showing_instant() && | 660 if (preview_contents_.get() && is_showing_instant() && |
664 !is_waiting_for_load()) { | 661 !is_waiting_for_load()) { |
665 preview_contents_->render_view_host()->SearchBoxResize( | 662 preview_contents_->render_view_host()->SearchBoxResize( |
666 GetOmniboxBoundsInTermsOfPreview()); | 663 GetOmniboxBoundsInTermsOfPreview()); |
667 } | 664 } |
668 } | 665 } |
OLD | NEW |