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

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

Issue 1731373002: Allow to have a transparent UA dependent background. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « content/public/common/content_switches.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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; 108 void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
109 void ViewHierarchyChanged( 109 void ViewHierarchyChanged(
110 const ViewHierarchyChangedDetails& details) override; 110 const ViewHierarchyChangedDetails& details) override;
111 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; 111 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override;
112 bool OnMousePressed(const ui::MouseEvent& event) override; 112 bool OnMousePressed(const ui::MouseEvent& event) override;
113 void OnFocus() override; 113 void OnFocus() override;
114 void AboutToRequestFocusFromTabTraversal(bool reverse) override; 114 void AboutToRequestFocusFromTabTraversal(bool reverse) override;
115 void GetAccessibleState(ui::AXViewState* state) override; 115 void GetAccessibleState(ui::AXViewState* state) override;
116 gfx::NativeViewAccessible GetNativeViewAccessible() override; 116 gfx::NativeViewAccessible GetNativeViewAccessible() override;
117 gfx::Size GetPreferredSize() const override; 117 gfx::Size GetPreferredSize() const override;
118 void OnPaintBackground(gfx::Canvas* canvas);
118 119
119 // Overridden from content::RenderProcessHostObserver: 120 // Overridden from content::RenderProcessHostObserver:
120 void RenderProcessExited(content::RenderProcessHost* host, 121 void RenderProcessExited(content::RenderProcessHost* host,
121 base::TerminationStatus status, 122 base::TerminationStatus status,
122 int exit_code) override; 123 int exit_code) override;
123 void RenderProcessHostDestroyed(content::RenderProcessHost* host) override; 124 void RenderProcessHostDestroyed(content::RenderProcessHost* host) override;
124 125
125 // Overridden from content::WebContentsDelegate: 126 // Overridden from content::WebContentsDelegate:
126 bool EmbedsFullscreenWidget() const override; 127 bool EmbedsFullscreenWidget() const override;
127 128
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 content::BrowserContext* browser_context_; 175 content::BrowserContext* browser_context_;
175 bool allow_accelerators_; 176 bool allow_accelerators_;
176 gfx::Size preferred_size_; 177 gfx::Size preferred_size_;
177 178
178 DISALLOW_COPY_AND_ASSIGN(WebView); 179 DISALLOW_COPY_AND_ASSIGN(WebView);
179 }; 180 };
180 181
181 } // namespace views 182 } // namespace views
182 183
183 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_ 184 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEBVIEW_H_
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | ui/views/controls/webview/webview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698