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

Side by Side Diff: ui/views/controls/webview/webview.h

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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
« no previous file with comments | « ui/views/controls/webview/web_dialog_view.cc ('k') | ui/views/controls/webview/webview.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ 5 #ifndef UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_
6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ 6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/web_contents_delegate.h" 10 #include "content/public/browser/web_contents_delegate.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; 101 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
102 virtual void ViewHierarchyChanged( 102 virtual void ViewHierarchyChanged(
103 const ViewHierarchyChangedDetails& details) OVERRIDE; 103 const ViewHierarchyChangedDetails& details) OVERRIDE;
104 virtual bool SkipDefaultKeyEventProcessing( 104 virtual bool SkipDefaultKeyEventProcessing(
105 const ui::KeyEvent& event) OVERRIDE; 105 const ui::KeyEvent& event) OVERRIDE;
106 virtual bool IsFocusable() const OVERRIDE; 106 virtual bool IsFocusable() const OVERRIDE;
107 virtual void OnFocus() OVERRIDE; 107 virtual void OnFocus() OVERRIDE;
108 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; 108 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE;
109 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 109 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
110 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; 110 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE;
111 virtual gfx::Size GetPreferredSize() OVERRIDE; 111 virtual gfx::Size GetPreferredSize() const OVERRIDE;
112 112
113 // Overridden from content::WebContentsDelegate: 113 // Overridden from content::WebContentsDelegate:
114 virtual void WebContentsFocused(content::WebContents* web_contents) OVERRIDE; 114 virtual void WebContentsFocused(content::WebContents* web_contents) OVERRIDE;
115 virtual bool EmbedsFullscreenWidget() const OVERRIDE; 115 virtual bool EmbedsFullscreenWidget() const OVERRIDE;
116 116
117 // Overridden from content::WebContentsObserver: 117 // Overridden from content::WebContentsObserver:
118 virtual void RenderViewDeleted( 118 virtual void RenderViewDeleted(
119 content::RenderViewHost* render_view_host) OVERRIDE; 119 content::RenderViewHost* render_view_host) OVERRIDE;
120 virtual void RenderViewHostChanged( 120 virtual void RenderViewHostChanged(
121 content::RenderViewHost* old_host, 121 content::RenderViewHost* old_host,
(...skipping 30 matching lines...) Expand all
152 content::BrowserContext* browser_context_; 152 content::BrowserContext* browser_context_;
153 bool allow_accelerators_; 153 bool allow_accelerators_;
154 gfx::Size preferred_size_; 154 gfx::Size preferred_size_;
155 155
156 DISALLOW_COPY_AND_ASSIGN(WebView); 156 DISALLOW_COPY_AND_ASSIGN(WebView);
157 }; 157 };
158 158
159 } // namespace views 159 } // namespace views
160 160
161 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ 161 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_
OLDNEW
« no previous file with comments | « ui/views/controls/webview/web_dialog_view.cc ('k') | ui/views/controls/webview/webview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698