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

Side by Side Diff: chrome/browser/notifications/balloon_host.h

Issue 8432011: Move RendererPreferences to content/public/common and also put in the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « chrome/browser/instant/instant_loader.cc ('k') | chrome/browser/notifications/balloon_host.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/extensions/extension_function_dispatcher.h" 14 #include "chrome/browser/extensions/extension_function_dispatcher.h"
15 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" 15 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h"
16 #include "content/browser/renderer_host/render_view_host_delegate.h" 16 #include "content/browser/renderer_host/render_view_host_delegate.h"
17 #include "content/public/browser/notification_registrar.h" 17 #include "content/public/browser/notification_registrar.h"
18 18
19 class Balloon; 19 class Balloon;
20 class Browser; 20 class Browser;
21 class Profile; 21 class Profile;
22 class SiteInstance; 22 class SiteInstance;
23 struct RendererPreferences;
24 struct WebPreferences; 23 struct WebPreferences;
25 24
26 namespace IPC { 25 namespace IPC {
27 class Message; 26 class Message;
28 } 27 }
29 28
30 class BalloonHost : public RenderViewHostDelegate, 29 class BalloonHost : public RenderViewHostDelegate,
31 public RenderViewHostDelegate::View, 30 public RenderViewHostDelegate::View,
32 public ExtensionFunctionDispatcher::Delegate { 31 public ExtensionFunctionDispatcher::Delegate {
33 public: 32 public:
(...skipping 19 matching lines...) Expand all
53 virtual const GURL& GetURL() const OVERRIDE; 52 virtual const GURL& GetURL() const OVERRIDE;
54 virtual void Close(RenderViewHost* render_view_host) OVERRIDE; 53 virtual void Close(RenderViewHost* render_view_host) OVERRIDE;
55 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; 54 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE;
56 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE; 55 virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE;
57 virtual void RenderViewGone(RenderViewHost* render_view_host, 56 virtual void RenderViewGone(RenderViewHost* render_view_host,
58 base::TerminationStatus status, 57 base::TerminationStatus status,
59 int error_code) OVERRIDE; 58 int error_code) OVERRIDE;
60 virtual content::ViewType GetRenderViewType() const OVERRIDE; 59 virtual content::ViewType GetRenderViewType() const OVERRIDE;
61 virtual RenderViewHostDelegate::View* GetViewDelegate() OVERRIDE; 60 virtual RenderViewHostDelegate::View* GetViewDelegate() OVERRIDE;
62 virtual void HandleMouseDown() OVERRIDE; 61 virtual void HandleMouseDown() OVERRIDE;
63 virtual RendererPreferences GetRendererPrefs( 62 virtual content::RendererPreferences GetRendererPrefs(
64 content::BrowserContext* browser_context) const OVERRIDE; 63 content::BrowserContext* browser_context) const OVERRIDE;
65 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE; 64 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE;
66 65
67 // RenderViewHostDelegate::View methods. Only the ones for opening new 66 // RenderViewHostDelegate::View methods. Only the ones for opening new
68 // windows are currently implemented. 67 // windows are currently implemented.
69 virtual void CreateNewWindow( 68 virtual void CreateNewWindow(
70 int route_id, 69 int route_id,
71 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE; 70 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE;
72 virtual void CreateNewWidget(int route_id, 71 virtual void CreateNewWidget(int route_id,
73 WebKit::WebPopupType popup_type) OVERRIDE {} 72 WebKit::WebPopupType popup_type) OVERRIDE {}
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Common implementations of some RenderViewHostDelegate::View methods. 136 // Common implementations of some RenderViewHostDelegate::View methods.
138 RenderViewHostDelegateViewHelper delegate_view_helper_; 137 RenderViewHostDelegateViewHelper delegate_view_helper_;
139 138
140 // A flag to enable Web UI. 139 // A flag to enable Web UI.
141 bool enable_web_ui_; 140 bool enable_web_ui_;
142 141
143 ExtensionFunctionDispatcher extension_function_dispatcher_; 142 ExtensionFunctionDispatcher extension_function_dispatcher_;
144 }; 143 };
145 144
146 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ 145 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/instant/instant_loader.cc ('k') | chrome/browser/notifications/balloon_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698