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

Side by Side Diff: chrome/common/chrome_notification_types.h

Issue 9030010: Move most of the remaining users of WebContentsObserver::tab_contents() to use web_contents(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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
« no previous file with comments | « chrome/browser/ui/views/sad_tab_view.cc ('k') | chrome/test/base/ui_test_utils.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_COMMON_CHROME_NOTIFICATION_TYPES_H_ 5 #ifndef CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_
6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ 6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/public/browser/notification_types.h" 9 #include "content/public/browser/notification_types.h"
10 10
(...skipping 30 matching lines...) Expand all
41 // will shut down). Note that the boolean pointed to by details is only 41 // will shut down). Note that the boolean pointed to by details is only
42 // valid for the duration of this call. 42 // valid for the duration of this call.
43 NOTIFICATION_BROWSER_CLOSED, 43 NOTIFICATION_BROWSER_CLOSED,
44 44
45 // Indicates that a top window has been closed. The source is the HWND 45 // Indicates that a top window has been closed. The source is the HWND
46 // that was closed, no details are expected. 46 // that was closed, no details are expected.
47 NOTIFICATION_WINDOW_CLOSED, 47 NOTIFICATION_WINDOW_CLOSED,
48 48
49 // Sent when the language (English, French...) for a page has been detected. 49 // Sent when the language (English, French...) for a page has been detected.
50 // The details Details<std::string> contain the ISO 639-1 language code and 50 // The details Details<std::string> contain the ISO 639-1 language code and
51 // the source is Source<TabContents>. 51 // the source is Source<WebContents>.
52 NOTIFICATION_TAB_LANGUAGE_DETERMINED, 52 NOTIFICATION_TAB_LANGUAGE_DETERMINED,
53 53
54 // Sent when a page has been translated. The source is the tab for that page 54 // Sent when a page has been translated. The source is the tab for that page
55 // (Source<TabContents>) and the details are the language the page was 55 // (Source<WebContents>) and the details are the language the page was
56 // originally in and the language it was translated to 56 // originally in and the language it was translated to
57 // (std::pair<std::string, std::string>). 57 // (std::pair<std::string, std::string>).
58 NOTIFICATION_PAGE_TRANSLATED, 58 NOTIFICATION_PAGE_TRANSLATED,
59 59
60 // Sent after the renderer returns a snapshot of tab contents. 60 // Sent after the renderer returns a snapshot of tab contents.
61 // The source (Source<content::WebContents>) is the RenderViewHost for which 61 // The source (Source<content::WebContents>) is the RenderViewHost for which
62 // the snapshot was generated and the details (Details<const SkBitmap>) is 62 // the snapshot was generated and the details (Details<const SkBitmap>) is
63 // the actual snapshot. 63 // the actual snapshot.
64 NOTIFICATION_TAB_SNAPSHOT_TAKEN, 64 NOTIFICATION_TAB_SNAPSHOT_TAKEN,
65 65
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
1009 // Currently only Content and Chrome define and use notifications. 1009 // Currently only Content and Chrome define and use notifications.
1010 // Custom notifications not belonging to Content and Chrome should start 1010 // Custom notifications not belonging to Content and Chrome should start
1011 // from here. 1011 // from here.
1012 NOTIFICATION_CHROME_END, 1012 NOTIFICATION_CHROME_END,
1013 }; 1013 };
1014 1014
1015 } // namespace chrome 1015 } // namespace chrome
1016 1016
1017 1017
1018 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ 1018 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/sad_tab_view.cc ('k') | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698