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

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

Issue 10897034: First part of PAGE_TRANSITION_START_PAGE cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/protocol/sync_enums.proto ('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/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
(...skipping 28 matching lines...) Expand all
39 // those it implicitly creates via GetWebContents() above. 39 // those it implicitly creates via GetWebContents() above.
40 void SetWebContents(content::WebContents* web_contents); 40 void SetWebContents(content::WebContents* web_contents);
41 41
42 content::WebContents* web_contents() { return web_contents_; } 42 content::WebContents* web_contents() { return web_contents_; }
43 43
44 content::BrowserContext* browser_context() { return browser_context_; } 44 content::BrowserContext* browser_context() { return browser_context_; }
45 45
46 // Loads the initial URL to display in the attached WebContents. Creates the 46 // Loads the initial URL to display in the attached WebContents. Creates the
47 // WebContents if none is attached yet. Note that this is intended as a 47 // WebContents if none is attached yet. Note that this is intended as a
48 // convenience for loading the initial URL, and so URLs are navigated with 48 // convenience for loading the initial URL, and so URLs are navigated with
49 // PAGE_TRANSITION_START_PAGE, so this is not intended as a general purpose 49 // PAGE_TRANSITION_AUTO_TOPLEVEL, so this is not intended as a general purpose
50 // navigation method - use WebContents' API directly. 50 // navigation method - use WebContents' API directly.
51 void LoadInitialURL(const GURL& url); 51 void LoadInitialURL(const GURL& url);
52 52
53 // Controls how the attached WebContents is resized. 53 // Controls how the attached WebContents is resized.
54 // false = WebContents' views' bounds are updated continuously as the 54 // false = WebContents' views' bounds are updated continuously as the
55 // WebView's bounds change (default). 55 // WebView's bounds change (default).
56 // true = WebContents' views' position is updated continuously but its size 56 // true = WebContents' views' position is updated continuously but its size
57 // is not (which may result in some clipping or under-painting) until 57 // is not (which may result in some clipping or under-painting) until
58 // a continuous size operation completes. This allows for smoother 58 // a continuous size operation completes. This allows for smoother
59 // resizing performance during interactive resizes and animations. 59 // resizing performance during interactive resizes and animations.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 content::NotificationRegistrar registrar_; 121 content::NotificationRegistrar registrar_;
122 bool allow_accelerators_; 122 bool allow_accelerators_;
123 gfx::Size preferred_size_; 123 gfx::Size preferred_size_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(WebView); 125 DISALLOW_COPY_AND_ASSIGN(WebView);
126 }; 126 };
127 127
128 } // namespace views 128 } // namespace views
129 129
130 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ 130 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_
OLDNEW
« no previous file with comments | « sync/protocol/sync_enums.proto ('k') | ui/views/controls/webview/webview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698