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

Side by Side Diff: content/browser/tab_contents/interstitial_page.cc

Issue 7537030: Make panel adjust bounds per preferred size change notification on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/tab_contents/interstitial_page.h" 5 #include "content/browser/tab_contents/interstitial_page.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 const SkBitmap& image, 110 const SkBitmap& image,
111 const gfx::Point& image_offset); 111 const gfx::Point& image_offset);
112 virtual void UpdateDragCursor(WebDragOperation operation); 112 virtual void UpdateDragCursor(WebDragOperation operation);
113 virtual void GotFocus(); 113 virtual void GotFocus();
114 virtual void TakeFocus(bool reverse); 114 virtual void TakeFocus(bool reverse);
115 virtual void OnFindReply(int request_id, 115 virtual void OnFindReply(int request_id,
116 int number_of_matches, 116 int number_of_matches,
117 const gfx::Rect& selection_rect, 117 const gfx::Rect& selection_rect,
118 int active_match_ordinal, 118 int active_match_ordinal,
119 bool final_update); 119 bool final_update);
120 virtual void UpdatePreferredSize(const gfx::Size& pref_size);
121 120
122 private: 121 private:
123 InterstitialPage* interstitial_page_; 122 InterstitialPage* interstitial_page_;
124 123
125 DISALLOW_COPY_AND_ASSIGN(InterstitialPageRVHViewDelegate); 124 DISALLOW_COPY_AND_ASSIGN(InterstitialPageRVHViewDelegate);
126 }; 125 };
127 126
128 // static 127 // static
129 InterstitialPage::InterstitialPageMap* 128 InterstitialPage::InterstitialPageMap*
130 InterstitialPage::tab_to_interstitial_page_ = NULL; 129 InterstitialPage::tab_to_interstitial_page_ = NULL;
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 } 646 }
648 647
649 void InterstitialPage::InterstitialPageRVHViewDelegate::UpdateDragCursor( 648 void InterstitialPage::InterstitialPageRVHViewDelegate::UpdateDragCursor(
650 WebDragOperation) { 649 WebDragOperation) {
651 NOTREACHED() << "InterstitialPage does not support dragging yet."; 650 NOTREACHED() << "InterstitialPage does not support dragging yet.";
652 } 651 }
653 652
654 void InterstitialPage::InterstitialPageRVHViewDelegate::GotFocus() { 653 void InterstitialPage::InterstitialPageRVHViewDelegate::GotFocus() {
655 } 654 }
656 655
657 void InterstitialPage::InterstitialPageRVHViewDelegate::UpdatePreferredSize(
658 const gfx::Size& pref_size) {
659 }
660
661 void InterstitialPage::InterstitialPageRVHViewDelegate::TakeFocus( 656 void InterstitialPage::InterstitialPageRVHViewDelegate::TakeFocus(
662 bool reverse) { 657 bool reverse) {
663 if (interstitial_page_->tab() && interstitial_page_->tab()->GetViewDelegate()) 658 if (interstitial_page_->tab() && interstitial_page_->tab()->GetViewDelegate())
664 interstitial_page_->tab()->GetViewDelegate()->TakeFocus(reverse); 659 interstitial_page_->tab()->GetViewDelegate()->TakeFocus(reverse);
665 } 660 }
666 661
667 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( 662 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply(
668 int request_id, int number_of_matches, const gfx::Rect& selection_rect, 663 int request_id, int number_of_matches, const gfx::Rect& selection_rect,
669 int active_match_ordinal, bool final_update) { 664 int active_match_ordinal, bool final_update) {
670 } 665 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_delegate.h ('k') | content/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698