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

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

Issue 5361006: For OSX, make it so that notifications only start resizing after the first paint is done. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser
Patch Set: Fix ifdef. Created 10 years 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 virtual void UpdatePreferredSize(const gfx::Size& pref_size); 105 virtual void UpdatePreferredSize(const gfx::Size& pref_size);
106 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; 106 virtual RendererPreferences GetRendererPrefs(Profile* profile) const;
107 107
108 // Enable DOM UI. This has to be called before renderer is created. 108 // Enable DOM UI. This has to be called before renderer is created.
109 void EnableDOMUI(); 109 void EnableDOMUI();
110 110
111 virtual void UpdateInspectorSetting(const std::string& key, 111 virtual void UpdateInspectorSetting(const std::string& key,
112 const std::string& value); 112 const std::string& value);
113 virtual void ClearInspectorSettings(); 113 virtual void ClearInspectorSettings();
114 114
115 // Called when the render view has painted.
116 void RenderWidgetHostDidPaint();
117
115 protected: 118 protected:
116 virtual ~BalloonHost(); 119 virtual ~BalloonHost();
117 // Must override in platform specific implementations. 120 // Must override in platform specific implementations.
118 virtual void InitRenderWidgetHostView() = 0; 121 virtual void InitRenderWidgetHostView() = 0;
119 virtual RenderWidgetHostView* render_widget_host_view() const = 0; 122 virtual RenderWidgetHostView* render_widget_host_view() const = 0;
120 123
121 // Owned pointer to the host for the renderer process. 124 // Owned pointer to the host for the renderer process.
122 RenderViewHost* render_view_host_; 125 RenderViewHost* render_view_host_;
123 126
124 private: 127 private:
(...skipping 20 matching lines...) Expand all
145 148
146 // Handles requests to extension APIs. Will only be non-NULL if we are 149 // Handles requests to extension APIs. Will only be non-NULL if we are
147 // rendering a page from an extension. 150 // rendering a page from an extension.
148 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; 151 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_;
149 152
150 // A flag to enable DOM UI. 153 // A flag to enable DOM UI.
151 bool enable_dom_ui_; 154 bool enable_dom_ui_;
152 }; 155 };
153 156
154 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_ 157 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698