guest_view_constants.cc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "components/guest_view/common/guest_view_constants.h"
  5. namespace guest_view {
  6. // Sizing attributes/parameters.
  7. const char kAttributeAutoSize[] = "autosize";
  8. const char kAttributeMaxHeight[] = "maxheight";
  9. const char kAttributeMaxWidth[] = "maxwidth";
  10. const char kAttributeMinHeight[] = "minheight";
  11. const char kAttributeMinWidth[] = "minwidth";
  12. const char kElementWidth[] = "elementWidth";
  13. const char kElementHeight[] = "elementHeight";
  14. const char kElementSizeIsLogical[] = "elementSizeIsLogical";
  15. // Events.
  16. const char kEventResize[] = "guestViewInternal.onResize";
  17. // Parameters/properties on events.
  18. const char kCode[] = "code";
  19. const char kID[] = "id";
  20. const char kIsTopLevel[] = "isTopLevel";
  21. const char kNewWidth[] = "newWidth";
  22. const char kNewHeight[] = "newHeight";
  23. const char kOldWidth[] = "oldWidth";
  24. const char kOldHeight[] = "oldHeight";
  25. const char kReason[] = "reason";
  26. const char kUrl[] = "url";
  27. const char kUserGesture[] = "userGesture";
  28. // Initialization parameters.
  29. const char kParameterApi[] = "api";
  30. const char kParameterInstanceId[] = "instanceId";
  31. // Other.
  32. const char kGuestViewManagerKeyName[] = "guest_view_manager";
  33. const int kInstanceIDNone = 0;
  34. const int kDefaultWidth = 300;
  35. const int kDefaultHeight = 300;
  36. } // namespace guestview