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

Side by Side Diff: chrome/renderer/chrome_render_view_observer.h

Issue 2724933002: Convert SetVisuallyDeemphasized IPC to mojo (Closed)
Patch Set: Addressed Ken's comments Created 3 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
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 CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ 5 #ifndef CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_
6 #define CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ 6 #define CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 25 matching lines...) Expand all
36 // RenderViewObserver implementation. 36 // RenderViewObserver implementation.
37 bool OnMessageReceived(const IPC::Message& message) override; 37 bool OnMessageReceived(const IPC::Message& message) override;
38 void DidCommitProvisionalLoad(blink::WebLocalFrame* frame, 38 void DidCommitProvisionalLoad(blink::WebLocalFrame* frame,
39 bool is_new_navigation) override; 39 bool is_new_navigation) override;
40 void Navigate(const GURL& url) override; 40 void Navigate(const GURL& url) override;
41 void OnDestruct() override; 41 void OnDestruct() override;
42 42
43 #if !defined(OS_ANDROID) 43 #if !defined(OS_ANDROID)
44 void OnWebUIJavaScript(const base::string16& javascript); 44 void OnWebUIJavaScript(const base::string16& javascript);
45 #endif 45 #endif
46 #if BUILDFLAG(ENABLE_EXTENSIONS)
47 void OnSetVisuallyDeemphasized(bool deemphasized);
48 #endif
49 #if defined(OS_ANDROID) 46 #if defined(OS_ANDROID)
50 void OnUpdateBrowserControlsState(content::BrowserControlsState constraints, 47 void OnUpdateBrowserControlsState(content::BrowserControlsState constraints,
51 content::BrowserControlsState current, 48 content::BrowserControlsState current,
52 bool animate); 49 bool animate);
53 #endif 50 #endif
54 void OnGetWebApplicationInfo(); 51 void OnGetWebApplicationInfo();
55 void OnSetWindowFeatures(const blink::mojom::WindowFeatures& window_features); 52 void OnSetWindowFeatures(const blink::mojom::WindowFeatures& window_features);
56 53
57 // Determines if a host is in the strict security host set. 54 // Determines if a host is in the strict security host set.
58 bool IsStrictSecurityHost(const std::string& host); 55 bool IsStrictSecurityHost(const std::string& host);
59 56
60 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received. 57 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received.
61 std::vector<base::string16> webui_javascript_; 58 std::vector<base::string16> webui_javascript_;
62 59
63 // Owned by ChromeContentRendererClient and outlive us. 60 // Owned by ChromeContentRendererClient and outlive us.
64 web_cache::WebCacheImpl* web_cache_impl_; 61 web_cache::WebCacheImpl* web_cache_impl_;
65 62
66 // true if webview is overlayed with grey color.
67 bool webview_visually_deemphasized_;
68
69 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); 63 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver);
70 }; 64 };
71 65
72 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ 66 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/chrome_extension_messages.h ('k') | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698