| OLD | NEW |
| 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_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| 11 #include <algorithm> | 11 #include <algorithm> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "app/gtk_signal.h" | |
| 15 #include "app/gtk_signal_registrar.h" | |
| 16 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 17 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
| 18 #include "base/string_util.h" | 16 #include "base/string_util.h" |
| 19 #include "chrome/browser/autocomplete/autocomplete_edit_view.h" | 17 #include "chrome/browser/autocomplete/autocomplete_edit_view.h" |
| 20 #include "chrome/browser/gtk/owned_widget_gtk.h" | 18 #include "chrome/browser/gtk/owned_widget_gtk.h" |
| 21 #include "chrome/browser/ui/toolbar/toolbar_model.h" | 19 #include "chrome/browser/ui/toolbar/toolbar_model.h" |
| 22 #include "chrome/common/notification_observer.h" | 20 #include "chrome/common/notification_observer.h" |
| 23 #include "chrome/common/notification_registrar.h" | 21 #include "chrome/common/notification_registrar.h" |
| 24 #include "chrome/common/page_transition_types.h" | 22 #include "chrome/common/page_transition_types.h" |
| 25 #include "gfx/rect.h" | 23 #include "gfx/rect.h" |
| 26 #include "ui/base/animation/animation_delegate.h" | 24 #include "ui/base/animation/animation_delegate.h" |
| 25 #include "ui/base/gtk/gtk_signal.h" |
| 26 #include "ui/base/gtk/gtk_signal_registrar.h" |
| 27 #include "webkit/glue/window_open_disposition.h" | 27 #include "webkit/glue/window_open_disposition.h" |
| 28 | 28 |
| 29 class AccessibleWidgetHelper; | 29 class AccessibleWidgetHelper; |
| 30 class AutocompleteEditController; | 30 class AutocompleteEditController; |
| 31 class AutocompleteEditModel; | 31 class AutocompleteEditModel; |
| 32 class AutocompletePopupView; | 32 class AutocompletePopupView; |
| 33 class Profile; | 33 class Profile; |
| 34 class TabContents; | 34 class TabContents; |
| 35 | 35 |
| 36 namespace gfx { | 36 namespace gfx { |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 | 527 |
| 528 // Tracking preedit state before and after a possible change. We don't need to | 528 // Tracking preedit state before and after a possible change. We don't need to |
| 529 // track preedit_'s content, as it'll be treated as part of text content. | 529 // track preedit_'s content, as it'll be treated as part of text content. |
| 530 size_t preedit_size_before_change_; | 530 size_t preedit_size_before_change_; |
| 531 #endif | 531 #endif |
| 532 | 532 |
| 533 // The view that is going to be focused next. Only valid while handling | 533 // The view that is going to be focused next. Only valid while handling |
| 534 // "focus-out" events. | 534 // "focus-out" events. |
| 535 GtkWidget* going_to_focus_; | 535 GtkWidget* going_to_focus_; |
| 536 | 536 |
| 537 GtkSignalRegistrar signals_; | 537 ui::GtkSignalRegistrar signals_; |
| 538 | 538 |
| 539 #if defined(TOOLKIT_VIEWS) | 539 #if defined(TOOLKIT_VIEWS) |
| 540 scoped_ptr<AccessibleWidgetHelper> accessible_widget_helper_; | 540 scoped_ptr<AccessibleWidgetHelper> accessible_widget_helper_; |
| 541 #endif | 541 #endif |
| 542 | 542 |
| 543 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); | 543 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); |
| 544 }; | 544 }; |
| 545 | 545 |
| 546 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ | 546 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ |
| OLD | NEW |