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

Side by Side Diff: chrome/browser/automation/automation_window_tracker.h

Issue 273017: Move native_widget_types and gtk_native_view_id_manager from base/gfx to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_AUTOMATION_AUTOMATION_WINDOW_TRACKER_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_WINDOW_TRACKER_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_WINDOW_TRACKER_H_ 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_WINDOW_TRACKER_H_
7 7
8 #include "base/gfx/native_widget_types.h" 8 #include "app/gfx/native_widget_types.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/automation/automation_resource_tracker.h" 10 #include "chrome/browser/automation/automation_resource_tracker.h"
11 #include "chrome/common/native_window_notification_source.h" 11 #include "chrome/common/native_window_notification_source.h"
12 12
13 class AutomationWindowTracker 13 class AutomationWindowTracker
14 : public AutomationResourceTracker<gfx::NativeWindow> { 14 : public AutomationResourceTracker<gfx::NativeWindow> {
15 public: 15 public:
16 AutomationWindowTracker(IPC::Message::Sender* automation) 16 AutomationWindowTracker(IPC::Message::Sender* automation)
17 : AutomationResourceTracker<gfx::NativeWindow>(automation) { } 17 : AutomationResourceTracker<gfx::NativeWindow>(automation) { }
18 virtual ~AutomationWindowTracker() { 18 virtual ~AutomationWindowTracker() {
19 } 19 }
20 20
21 virtual void AddObserver(gfx::NativeWindow resource) { 21 virtual void AddObserver(gfx::NativeWindow resource) {
22 registrar_.Add(this, NotificationType::WINDOW_CLOSED, 22 registrar_.Add(this, NotificationType::WINDOW_CLOSED,
23 Source<gfx::NativeWindow>(resource)); 23 Source<gfx::NativeWindow>(resource));
24 } 24 }
25 25
26 virtual void RemoveObserver(gfx::NativeWindow resource) { 26 virtual void RemoveObserver(gfx::NativeWindow resource) {
27 registrar_.Remove(this, NotificationType::WINDOW_CLOSED, 27 registrar_.Remove(this, NotificationType::WINDOW_CLOSED,
28 Source<gfx::NativeWindow>(resource)); 28 Source<gfx::NativeWindow>(resource));
29 } 29 }
30 }; 30 };
31 31
32 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_WINDOW_TRACKER_H_ 32 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_WINDOW_TRACKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view.h ('k') | chrome/browser/automation/ui_controls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698