| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_COMMON_VIEW_TYPE_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_VIEW_TYPE_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_VIEW_TYPE_H_ | 6 #define CONTENT_PUBLIC_COMMON_VIEW_TYPE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 // Indicates different types of views. | 11 // Icky RTTI used by a few systems to distinguish the host type of a given |
| 12 // RenderViewHost or WebContents. |
| 13 // |
| 14 // TODO(aa): Remove this and teach those systems to keep track of their own |
| 15 // data. |
| 12 enum ViewTypeValues { | 16 enum ViewTypeValues { |
| 13 VIEW_TYPE_INVALID, | 17 VIEW_TYPE_INVALID, |
| 14 VIEW_TYPE_WEB_CONTENTS, | |
| 15 VIEW_TYPE_INTERSTITIAL_PAGE, | 18 VIEW_TYPE_INTERSTITIAL_PAGE, |
| 16 VIEW_TYPE_DEV_TOOLS_UI, | 19 VIEW_TYPE_DEV_TOOLS_UI, |
| 17 | |
| 18 VIEW_TYPE_CONTENT_END | 20 VIEW_TYPE_CONTENT_END |
| 19 }; | 21 }; |
| 20 | 22 |
| 21 typedef int ViewType; | 23 typedef int ViewType; |
| 22 | 24 |
| 23 } // namespace content | 25 } // namespace content |
| 24 | 26 |
| 25 #endif // CONTENT_PUBLIC_COMMON_VIEW_TYPE_H_ | 27 #endif // CONTENT_PUBLIC_COMMON_VIEW_TYPE_H_ |
| OLD | NEW |