Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Side by Side Diff: chrome/browser/instant/instant_loader.cc

Issue 3547008: Handle resize corner layout entirely in the platform BrowserWindow*/BrowserView* code... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) {} 423 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) {}
424 virtual void URLStarredChanged(TabContents* source, bool starred) {} 424 virtual void URLStarredChanged(TabContents* source, bool starred) {}
425 virtual void UpdateTargetURL(TabContents* source, const GURL& url) {} 425 virtual void UpdateTargetURL(TabContents* source, const GURL& url) {}
426 virtual void ContentsMouseEvent( 426 virtual void ContentsMouseEvent(
427 TabContents* source, const gfx::Point& location, bool motion) {} 427 TabContents* source, const gfx::Point& location, bool motion) {}
428 virtual void ContentsZoomChange(bool zoom_in) {} 428 virtual void ContentsZoomChange(bool zoom_in) {}
429 virtual void OnContentSettingsChange(TabContents* source) {} 429 virtual void OnContentSettingsChange(TabContents* source) {}
430 virtual bool IsApplication() const { return false; } 430 virtual bool IsApplication() const { return false; }
431 virtual void ConvertContentsToApplication(TabContents* source) {} 431 virtual void ConvertContentsToApplication(TabContents* source) {}
432 virtual bool CanReloadContents(TabContents* source) const { return true; } 432 virtual bool CanReloadContents(TabContents* source) const { return true; }
433 virtual gfx::Rect GetRootWindowResizerRect() const {
434 return gfx::Rect();
435 }
436 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate, 433 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate,
437 gfx::NativeWindow parent_window) {} 434 gfx::NativeWindow parent_window) {}
438 virtual void BeforeUnloadFired(TabContents* tab, 435 virtual void BeforeUnloadFired(TabContents* tab,
439 bool proceed, 436 bool proceed,
440 bool* proceed_to_fire_unload) {} 437 bool* proceed_to_fire_unload) {}
441 virtual void ForwardMessageToExternalHost(const std::string& message, 438 virtual void ForwardMessageToExternalHost(const std::string& message,
442 const std::string& origin, 439 const std::string& origin,
443 const std::string& target) {} 440 const std::string& target) {}
444 virtual bool IsExternalTabContainer() const { return false; } 441 virtual bool IsExternalTabContainer() const { return false; }
445 virtual void SetFocusToLocationBar(bool select_all) {} 442 virtual void SetFocusToLocationBar(bool select_all) {}
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 if (last_omnibox_bounds_ == omnibox_bounds_) 806 if (last_omnibox_bounds_ == omnibox_bounds_)
810 return; 807 return;
811 808
812 last_omnibox_bounds_ = omnibox_bounds_; 809 last_omnibox_bounds_ = omnibox_bounds_;
813 if (preview_contents_.get() && is_showing_instant() && 810 if (preview_contents_.get() && is_showing_instant() &&
814 !is_waiting_for_load()) { 811 !is_waiting_for_load()) {
815 SendOmniboxBoundsScript(preview_contents_.get(), 812 SendOmniboxBoundsScript(preview_contents_.get(),
816 GetOmniboxBoundsInTermsOfPreview()); 813 GetOmniboxBoundsInTermsOfPreview());
817 } 814 }
818 } 815 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698