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

Side by Side Diff: chrome_frame/chrome_frame_delegate.h

Issue 8555001: base::Bind: Convert chrome_frame/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bad merge. 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
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_FRAME_CHROME_FRAME_DELEGATE_H_ 5 #ifndef CHROME_FRAME_CHROME_FRAME_DELEGATE_H_
6 #define CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ 6 #define CHROME_FRAME_CHROME_FRAME_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlwin.h> 10 #include <atlwin.h>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual bool IsValid() const = 0; 58 virtual bool IsValid() const = 0;
59 59
60 // To be called when the top-most window of an application hosting 60 // To be called when the top-most window of an application hosting
61 // ChromeFrame is moved. 61 // ChromeFrame is moved.
62 virtual void OnHostMoved() = 0; 62 virtual void OnHostMoved() = 0;
63 63
64 protected: 64 protected:
65 virtual ~ChromeFrameDelegate() {} 65 virtual ~ChromeFrameDelegate() {}
66 }; 66 };
67 67
68 // Disable refcounting of ChromeFrameDelegate.
69 DISABLE_RUNNABLE_METHOD_REFCOUNT(ChromeFrameDelegate);
70
71 extern UINT kAutomationServerReady; 68 extern UINT kAutomationServerReady;
72 extern UINT kMessageFromChromeFrame; 69 extern UINT kMessageFromChromeFrame;
73 70
74 class ChromeFrameDelegateImpl : public ChromeFrameDelegate { 71 class ChromeFrameDelegateImpl : public ChromeFrameDelegate {
75 public: 72 public:
76 virtual WindowType GetWindow() { return NULL; } 73 virtual WindowType GetWindow() { return NULL; }
77 virtual void GetBounds(RECT* bounds) {} 74 virtual void GetBounds(RECT* bounds) {}
78 virtual std::string GetDocumentUrl() { return std::string(); } 75 virtual std::string GetDocumentUrl() { return std::string(); }
79 virtual void OnAutomationServerReady() {} 76 virtual void OnAutomationServerReady() {}
80 virtual void OnAutomationServerLaunchFailed( 77 virtual void OnAutomationServerLaunchFailed(
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 } 200 }
204 201
205 return false; 202 return false;
206 } 203 }
207 204
208 base::Lock lock_; 205 base::Lock lock_;
209 std::queue<Task*> pending_tasks_; 206 std::queue<Task*> pending_tasks_;
210 }; 207 };
211 208
212 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ 209 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698