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

Unified Diff: chrome/browser/ui/views/frame/contents_container.h

Issue 10910232: SearchViewController needs more tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Header order. Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/search/search_model.h ('k') | chrome/browser/ui/views/search_view_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/contents_container.h
diff --git a/chrome/browser/ui/views/frame/contents_container.h b/chrome/browser/ui/views/frame/contents_container.h
index 3227688ad56d91f6b0f1df7737597a026d066252..a342b7110f3d26daf5f59b006588ca98d7d441a2 100644
--- a/chrome/browser/ui/views/frame/contents_container.h
+++ b/chrome/browser/ui/views/frame/contents_container.h
@@ -30,11 +30,11 @@ class ContentsContainer : public views::View {
// when the |SearchViewController| is displaying the NTP, and activated
// otherwise. Deactivation removes the active view from the view hierarchy.
void SetActive(views::WebView* active);
- views::WebView* active() { return active_; }
+ views::WebView* active() const { return active_; }
sky 2012/09/12 21:28:49 const methods shouldn't return non-const objects,
dhollowa 2012/09/12 22:12:01 Done.
// Sets the overlay. The overlay is sized to the bounds of this view.
void SetOverlay(views::View* overlay);
- views::View* overlay() { return overlay_; }
+ views::View* overlay() const { return overlay_; }
// Makes the preview view the active view and nulls out the old active view.
// It's assumed the caller will delete or remove the old active view
@@ -44,7 +44,7 @@ class ContentsContainer : public views::View {
// Sets the preview view. This does not delete the old.
void SetPreview(views::WebView* preview,
content::WebContents* preview_web_contents);
-
+ views::WebView* preview() const { return preview_; }
content::WebContents* preview_web_contents() const {
return preview_web_contents_;
}
« no previous file with comments | « chrome/browser/ui/search/search_model.h ('k') | chrome/browser/ui/views/search_view_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698